Accessing current (rewritten) URL in JSF

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

Tagged: , , , ,

This topic contains 2 replies, has 2 voices, and was last updated by  Rafal G. 2 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #25986

    Rafal G.
    Participant

    Hi!
    How can I access current page URL (already rewritten by Rewrite, not original URL) in JSF’s EL or directly in Java code?

    #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");

    #25997

    Rafal G.
    Participant

    Thank you very much Christian, it worked.

    I didn’t look at most obvious place – FAQ 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Comments are closed.