There are two declaration in web.xml that i can not understand
these are :
<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>
I just can not understand , in some places they set another url-pattern
, for example :
<url-pattern>*.faces</url-pattern>
and thier application works file.
but for me with the first url-mapping , i should navigate to
http://localhost:8080/testApp/faces/index.jsp to works
so my understanding is that :
when i navigate to that url , the pattern matches and filter applies to
my request.
but when people uses *.faces in url-pattern , how they navigate to jsp
pages ?
should they change the file extensions to use jsf pages , or there is
some other triks ?
Thank you