Re: Rewrite URL deifiend in web.xml

Splash Forums PrettyFaces Users Rewrite URL deifiend in web.xml Re: Rewrite URL deifiend in web.xml

#23019

Sorry, I am at JavaOne and haven’t had much time to catch up:

You need to modify the mappings to look like this:

<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/error</location>
</error-page>

Then in pretty-config.xml, you need to add mappings for these Pretty URLs.

<url-mapping>
<pattern value="/" />
<view-id value="/pages/hotel/hotelHome.xhtml"/>
</url-mapping>

<url-mapping>

<pattern value=”/error” />

<view-id value=”/pages/common/errorHome.xhtml”/>

</url-mapping>`