Splash › Forums › PrettyFaces Users › How get the original Request URI from JSF ?
Tagged: URI, URL
This topic contains 2 replies, has 2 voices, and was last updated by ceefour 5 years, 2 months ago.
When using PrettyFaces, ((HttpServletRequest) ExternalContext.getRequest()).getRequestURI() returns the rewritten URI (i.e. /pages/show.xhtml instead of /show/123 )
How do I get the original URI (i.e. the one shown in browser) ?
you can use this code to get the original request URL:
Thank you Christian! You ROCK!
You must be logged in to reply to this topic.
Comments are closed.
If you find our tools useful, please consider making a donation to help us stay online and building software!