The New Web Application wizard creates a new containing an empty web application. You open the New Web Application
wizard by opening the New Project wizard and selecting
the Web Application template from the Web category.
In the Name and Location page, you have to set the following properties:
Project Name. Specifies the display name of the project. This name
is also used to create the project folder and the context path.
Project Location. Specifies the location where you want to store the
project metadata and source code.
Project Folder. Specifies the folder where you want
to store the project metadata and source code. The folder is a concatenation
of the project location and the project name.
Source Structure. Specifies how your web application will be
structured.
Add to Enterprise Application. Lets you specify an existing enterprise application
to which the web application will be added as a module. If you do not add it here,
you can do so later by expanding the enterprise application project node and
right-clicking the J2EE Modules node.
Server. Specifies the web application's server. Only servers that are
registered with the IDE
are available to be selected here:
For versions of the IDE that are bundled only with the Tomcat Web Server,
the Tomcat Web Server is automatically registered in the IDE.
For versions of the IDE that are bundled with both the Tomcat Web Server
and the Sun Java System Application Server, both servers are automatically registered in the IDE.
J2EE Version. Specifies the J2EE level against which your web application
will run.
Context Path. Specifies a way to distinguish resources in one web
application from resources in others that are deployed on the same server instance.
The context of an application determines the URL namespace of the contents of the web
application. When a web application's context property value is set, you access the web application
at http://hostname:port/context/servlet_or_jsp. For example, with the property value
set to /HelloWeb, you access the web application at http://hostname:port/HelloWeb/index.jsp.
Source Level Recommendations. One of the following checkboxes will appear
if JDK 1.5 is set as the default platform in the
Java Platform Manager.
The J2EE 1.4 and J2EE 1.3 specifications do not recommend JDK 1.5. Therefore, if you want
to create a portable application, select the appropriate checkbox:
Use JDK 1.4 and Set Source Level to 1.4. This checkbox appears if
JDK 1.4 is available in the
Java Platform Manager. Select this checkbox to set both your JDK level and your source level to 1.4.
Set Source Level to 1.4. This checkbox appears if JDK 1.4 is not available
in the Java Platform Manager. Select this checkbox so that at least your source level is set to 1.4.
Set as Main Project. Sets the newly created project as the main
project.
If you click Next, you can let the IDE provide your application with all the source files and libraries
needed to work with JSF, Struts, or both frameworks.
If you click Finish, the project is created on your computer and opened in the IDE.
You can view its logical structure in the Projects window and its file structure in the Files window.