My facelet pages and JSPs are working together in a project if i add the below to my web.xml
<servlet-mapping>
<servlet-name>Faces
Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
URL:http://localhost:port/projectName/faces/login.xhtml
I am not clear in understandin what's the significance in using /faces/*. From my understanding the below should work as well. Help me in understanding where I'm goin wrong.
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
URL:http://localhost:port/projectName/login.faces
And now I have a requirement where the page should navigate from a
JSP to a .xhtml(facelets page). Please help me out with this.