Reply To: RewriteRule to PrettyFaces.config

Splash Forums PrettyFaces Users RewriteRule to PrettyFaces.config Reply To: RewriteRule to PrettyFaces.config

#25259

mfe_
Participant

Thanks for your reply. I’m a little bit confused, because I tried to improve my pattern so that it will work only on characters and with “%20”.
For example SPAETZLE%20OHNE%20EI.html

<url-mapping id=”viewRecipe”>
<pattern value=”/#{ /([a-zA-Z_%0-2]*\.html)/ name }” />
<view-id value=”/viewRecipe.jsf” />
</url-mapping>

But I’m stuck, because I can’t get the pattern with PrettyContext.getCurrentInstance().getCurrentMapping() when I recive a 404 Page ( I only have “Bean Classes”, no “Servlets” or something else.) I checked the pattern at http://www.regexplanet.com/advanced/java/index.html and it seemed to be correct.

  • This reply was modified 8 years, 3 months ago by  mfe_.
  • This reply was modified 8 years, 3 months ago by  mfe_.