File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Facelets and JSPs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Facelets and JSPs" Watch "Facelets and JSPs" New topic
Author

Facelets and JSPs

a-z java
Greenhorn

Joined: Mar 04, 2008
Posts: 1
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

Joined: Apr 14, 2004
Posts: 10336

"a-z java"

Please check your private messages.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Facelets and JSPs