aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "jsf urls" Watch "jsf urls" New topic
Author

jsf urls

Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30762
    
156

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
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30762
    
156

James,
Yes, that helps. Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsf urls