Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Facelets and JSPs

 
a-z java
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"a-z java"

Please check your private messages.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic