Creating a New Web Application with Spring MVC Framework Support
See Also
The Spring framework libraries and supporting files are bundled with the IDE.
To create a new web application with Spring Web MVC support:
- Choose File > New Project (Ctrl-Shift-N). The New Project wizard displays.
- Under Categories select Web, then under Projects, select Web Application. Click Next.
- Continue through the wizard to Step 4, the Frameworks panel, and select Spring Web MVC 2.5.
- Under Spring Web MVC Configuration, specify the dispatcher name and mapping you
want to use in the application. Click Finish.
- The JSTL library version 1.1, is bundled by default with the web application. To exclude
JSTL, in the Frameworks panel click on the Libraries tab and deselect the Include JSTL option.
- 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.
- See Also
- Adding Spring Web MVC Framework Support to an Existing Application
- About Spring Web MVC Framework Support
- About Web Application Frameworks
Legal Notices