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 Frameworks page, you choose one or more frameworks that you
want to use to provide a structure for your web application.
Choose one or both of the following:
Visual Web JavaServer Faces. Specifies that you want the IDE to
provide the JSF libraries and create the following files for
your application:
faces-config.xml
If you select the JavaServer Faces checkbox, you can set the default Java package, JSF servlet name, and servlet URL mapping.
JavaServer Faces. Specifies that you want the IDE to
provide the JSF libraries and create the following files for
your application:
welcomeJSF.jsp
faces-config.xml
For details, see:
If you select the JavaServer Faces checkbox, you can set the JSF servlet name and servlet URL mapping in the Configuration tab. In the Libraries tab, you can specify which registered libraries to use. You can also create a new library and choose whether libraries can be appended.
If you choose Visual Web JavaServer Faces or JavaServer Faces, you can also choose the following options:
Validate XML. If selected, JSF XML files are validated by the server when the application is deployed.
Deselecting this option can reduce deployment time.
This option is selected by default.
Verify Objects. If selected, JSF objects are created and verified by the server when the application is deployed.
Selecting this option can increase deployment time.
This option is deselected by default.
Spring Web MVC Specifies that you want the IDE to provide the
Spring libraries and create the following files for your application:
web/WEB-INF/applicationContext.xml
web/WEB-INF/[dispatcher]-servlet.xml
web/WEB-INF/redirect.jsp
web/WEB-INF/jsp/index.jsp
If you select the Spring Web MVC checkbox, you can set the default dispatcher name
and mapping.
Dispatcher mappings are based on the Java Servlet Specification Section SRV.11.2.
In the web application deployment descriptor, the following syntax is used to
define standard mappings:
A string beginning with a '/' character and ending with a '/*'
postfix is used for path mapping.
A string beginning with a '*.' prefix is used as an extension
mapping.
A string containing only the '/' character indicates the default
servlet of the application. In this case the servlet path is the requested
URI minus the context path and the path info is null.
All other strings are used for exact matches only.
When you click Finish, the project is created in your file system and opened in the
IDE. The following libraries are automatically added to the project's classpath:
spring-2.5.jar
spring-webmvc-2.5.jar
commons-logging-1.1.jar
jstl.jar (optional)
standard.jar (optional)
You can view the project's logical structure in the Projects window and its file
structure in the Files window.
Struts Specifies that you want the IDE to
provide the Struts libraries and create the following files for
your application:
welcomeStruts.jsp
struts-config.xml
tiles-defs.xml
validator-rules.xml
ApplicationResource.properties
For details, see:
If you select the Struts 1.2.9 checkbox, you can set the servlet name and URL pattern.
You can also set the application resource and specify whether the IDE adds Struts TLDs.
When you click Finish, the project is created in your filesystem and opened in the IDE.
You can view its logical structure in the Projects window and its file structure in the Files window.