webtier@glassfish.java.net

alternatives to having /faces in the request URL

From: <webtier_at_javadesktop.org>
Date: Fri, 09 Jul 2010 09:14:52 PDT

I'm asked to look into alternatives to having /faces (or whatever string used for <url-pattern> in web.xml) in the request url that eventually invokes the FacesServlet, so if the request url is for example:

 http://servername/webapp/faces/resource.xxxx
they want it to be:
 http://servername/webapp/resource.xxxx
and still have FacesServlet handle the request.

So, I added a Filter implementation to intercept the request and then add/append the required url-pattern to the request. BUT, they don't like that solution either.

Question is:
As FacesServlet is a uhh Servlet, how else can one achieve this requirement?

Thx for any feedback.
[Message sent by forum member 'kaz2324']

http://forums.java.net/jive/thread.jspa?messageID=477209