Reply To: Accessing current (rewritten) URL in JSF

Splash Forums Rewrite Users Accessing current (rewritten) URL in JSF Reply To: Accessing current (rewritten) URL in JSF

#25987

Hi,

have a look at the “How do I retrieve the original URL after a forward” section in the FAQ:

http://ocpsoft.org/rewrite/docs/faq

Basically you can use this code to get the original URL:

String url = request.getAttribute("javax.servlet.forward.request_uri");