wood burning stoves 2.0*
The moose likes Struts and the fly likes jsf urls Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "jsf urls" Watch "jsf urls" New topic
Author

jsf urls

Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30068
    
149

Is it possible to use a URL other than *.faces or /faces/* for a JSF page?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
James Holmes
Author
Ranch Hand

Joined: Jan 06, 2004
Posts: 64
Jeanne,

You can change the mapping inside the "web.xml" file for your Web application. Notice below that I changed the mapping to "*.xyz".

<!-- 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>*.xyz</url-pattern>
</servlet-mapping>

Hope that helps,

-James
JSF Resources and Faces GUI tool
http://www.jamesholmes.com/JavaServerFaces/
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30068
    
149

James,
Yes, that helps. Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsf urls
 
Similar Threads
How to insert a row dynamically using ADF Faces/JSF
tabindex is not working in jsf
Which Eclipse realise to develop JSF?
Need JSF books
help regarding url-pattern in jsf