You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Prucha, Brett A" <Br...@scrb.navy.mil> on 2005/11/15 20:14:34 UTC

URL mapping

I'm fairly new to JSF and would like to know if there is an easier way
to map multiple URLs to the same JSF page then creating a custom
ViewHandler.  By mapping multiple URLs I mean I would like to map all
requests to both /core/foo/* and /core/bar/* to /faces/* by having a
servlet mapped to /core that sets a request attribute to either foo or
bar and then forwards the request to the faces dispatcher.  The faces
pages will then use the request attribute to cater it's results.  What
I've done is extend JspViewHandlerImpl and overloaded getActionURL() to
ensure I say under the /core servlet during the navigation process.

To you expert JSF gurus out there is this a correct approach or is there
a better way.


Thanks,

Brett Prucha