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 9 years, 5 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!
The forum ‘PrettyFaces Users’ is closed to new topics and replies.
Comments are closed.
If you find our tools useful, please consider making a donation to help us stay online and building software!