Control of URL format / mask JSP use
843842Jun 27 2003 — edited Jun 30 2003Hello,
I'm starting a new web application with a planned launch in about 9 months. I'm evaluating JSF as the underpinnings.
I see that the current implementation of FacesServlet calls for a URL format of essentially:
/faces/*.jsp..
Which I assume then the FacesServlet passes off to the JSP parser.
As a general practice, though, I always try to avoid reflecting an underlying technology within the URLs..
For example, while this might call for a URL like:
/faces/Document.jsp?id=456
What I'd like to accomplish is a URL like:
/servlet/Document/id/456/
Or even /servlet/Document?id=456 worst case.
So the question becomes, is there any way for me to create a layer that intercepts the incoming requests and figures out internally what JSP view source (or other template tech in the future) to use? For many reasons, I'd like the URLs to be an abstraction above the JSP view sources..
Maybe I could just write my own "FacesServlet"?? Any input is appreciated (I'd prefer not to accomplish this with struts :))..
Best regards,
Ryan