uCosminexus Application Server, Web Container Functionality Guide
The servlets settings are defined in web.xml. A web.xml file has different definitions for different versions of servlet.
You must define the following tags in web.xml to run JSF applications:
Use the servlet tag to register the FacesServlet class as a servlet. Make the settings in the web.xml as follows:
<servlet> <servlet-name>FacesServlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> </servlet> |
You must define the servlet-mapping element in web.xml.
Make the settings in web.xml as follows:
<servlet-mapping> <servlet-name>FacesServlet</servlet-name> <url-pattern>/faces/*</url-pattern> </servlet-mapping> |
For Servlet3.0, processes such as registration of the FacesServlet class or definition of the URL mapping are done by default. You need not define any settings in web.xml and the creation of web.xml is also optional.
The following points describe how the program behaves depending upon whether you register the FacesServlet class and define the URL mapping in web.xml.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.