Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The part between the <servlet> tags tells the application server that it has to instantiate an object of the javax.faces.webapp.FacesServlet class as a Servlet and name it Faces Servlet. It will be started at the start up of the application. The part between the <servlet-mapping> tags tells the web server that any URL starting with /faces/ immediately after the address of the server and the location of the application will be handled by that Servlet.

MyFaces core behavior can be customized, adding some web config params into your WEB-INF/web.xml file for your custom project in this way:

<context-param>
<param-name>org.apache.myfaces.SOME_USEFUL_PARAM</param-name>
<param-value>someValue</param-value>
</context-param>

On MyFaces site you can find an updated list of all web context parameters available for MyFaces Core. Take a look at these links:

Some additional descriptions about how and when to use these params can be found on:

The faces-config.xml configuration file

...