Dear all,
In the PetStore application, web.xml contains the following mappings:
<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup> 1 </load-on-startup>
</servlet>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
*<url-pattern>/faces/*</url-pattern>*
</servlet-mapping>
.... and:
<servlet-mapping>
<servlet-name>ControllerServlet</servlet-name>
<url-pattern>/catalog</url-pattern>
</servlet-mapping>
If I navigate in my browser to http://localhost:8087/petstore/faces/catalog.jsp?catid=Cats#feline01,1,
what servlet mappings will be performed: both the FacesServlet (because of the /faces) and the ControllerServlet (because of /catalog)
or just the best match, which is ControllerServlet ?
Also, when I debug the ControllerServlet, I see in the debugger that getRequestURI() is /petstore/catalog and getServletPath() is /catalog. Where is /faces then ?
Thank you,
Best regards,
Sorin