Creating a New Web Application Project

  1. Choose File > New > Dynamic Web Project.
  2. The New Dynamic Web Project dialog displays.

  3. In the dialog, enter a new name for your project in the Project Name field.
  4. By default, the new project folder is created in the Eclipse workspace directory. If this is not what you want, uncheck the Use default checkbox and click the Browse... button to select the folder to be used for the new project.
  5. This should be an empty folder.

  6. If you want to create an EAR file for deployment on a remote server, click on the Add Project to an EAR checkbox so that Eclipse will generate an EAR project associated with the current web application project.
  7. Click Next.
  8. The next screen allows you to choose the facets to be used in the project. Selecting a facet causes various libraries and settings to be added to your project, such as JSP or Struts. Note that you can specify the version of some of these technologies by clicking on the version number to the right of the facet name.
  9. Click the Finish button to create a new project.

Note that starting with the 3.3 release, you are no longer constrained to store your files in fixed locations within the project. Instead you can map folders so that they are considered as part of your application, even though they are located elsewhere.

Related tasks

Importing existing web applications
Managing Folder Mappings
Manage existing Java projects as web applications

 


Still need help? Post a question on the Workshop newsgroup.