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 Java Web category.
In the Server and Settings page, you have to set the following properties:
Add to Enterprise Application. Lets you add the web project to any open enterprise application project.
If you do not add it here, you can do so later by expanding the enterprise application project node and
right-clicking the Java EE 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 Glassfish application server, both servers are automatically registered in the IDE.
Copy Server JAR Files to Libraries Folder. If you are using a dedicated folder for storing libraries,
you can select this option to copy the server JAR files required for compilation into the dedicated libraries folder.
If not selected, other users will need local copies of the server JAR files to build the project.
Java EE Version. Specifies the Java EE level against which your web application
will run.
Notes
If you create a web application with the Visual Web JSF framework that uses J2EE 1.4, you must download the JavaServer Faces 1.1 library from the IDE's Update Center.
One of the following checkboxes will appear
if JDK 1.5 is set as the default platform in the
Java Platform Manager
and you set the source level to a version other than JDK 1.5.
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.
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.
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.
If you are creating a web project from existing sources, you must click Next
to specify the location of your web pages, Java sources and libraries.