rewrite param like

Splash Forums PrettyFaces Users rewrite param like

This topic contains 2 replies, has 2 voices, and was last updated by  cough 10 years, 2 months ago.

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



    i use jsf 2 and prettyfaces. My servlet mapping in web.xml is above:


    <servlet-name>Faces Servlet</servlet-name>



    And my pretty-config.xml url mapping is above:

    <url-mapping id=”article”>

    <pattern> /article/#{title} </pattern>



    By this pattern i can rewrite url like that “”.

    But i want to write like that “”.

    I tried “<pattern> /#{title} </pattern>”, but i got exception.

    If i write “<pattern> /#{title}/ </pattern>”, i don’t get exception but url is like that “”. I want to rewrite exactly “”.

    How can i do that?

    Thanks for interests


    What is the exception?


    <pattern value="/#{ /(?!.*\.xhtml.*)[^/]+/ title}"/>



    it works! thank you very much.

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

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

Comments are closed.