• Post Reply Bookmark Topic Watch Topic
  • New Topic

URL remapping for FacesServlet  RSS feed

 
Thomas Schueppel
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to encode information on which businessobject is currently in use in the URL. To view my Businessobject with with ID=123456 an URL would look like: http://host/faces/123456/view.jsp Still it should call the /view.jsp as should http://host/faces/3434/view.jsp and so on. The part between the /faces/ and the /view.jsp is only for my application use.
Any hints on how to achive this?
In the web.xml the facesservlet has a mapping of faces/* which makes it work for those urls, too. But how do I make it forward to /view.jsp. I the moment I believe it is looking for /123456/view.jsp which obviously does not exist.
 
Varun Khanna
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you inserting ID in the middle of URL?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!