How to create path-parameter from url?

Splash Forums PrettyFaces Users How to create path-parameter from url?


This topic contains 1 reply, has 2 voices, and was last updated by  Lincoln Baxter III 11 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #17849



    I have an application in which content of another application will be displayed. if the new content has a link, the link automatically will be rewritten with external URI but with my application host and context path.

    My question is how can I extract the external uri path from the URL and put it as a path-parameter:

    for example:


    I want this changes to:


    and of course an action is required to be invoked to manage this and show the resul



    Hi –

    You probably want to take a look at custom URL rewrite rules:

    Something like this (disclaimer: not verified to be exactly what you need):

    <rewrite match="^/pages/(oldStore.*)" substitute="/pages/index.xhtml?path=$1" redirect="chain"/>

    Notice that I used “chain” as the redirect type, this will do an internal redirect (servlet forward), and will not change the browser address… if you DO wish to issue a browser redirect, use “301” instead.

    Hope this helps,


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

The forum ‘PrettyFaces Users’ is closed to new topics and replies.

Comments are closed.