Re: How can handle URL ?

Splash Forums PrettyFaces Users How can handle URL ? Re: How can handle URL ?

#21350

thanhtung90
Participant

Actual, i don’t understand your mind(sorry because my english not good). I’m try with

http://localhost:8084/ProjectName/abcxyz/

In my config, i choice like your suggest and like above, here:

<pattern>/#{ /[a-z-_:]+/ category }/</pattern>
<view-id>#{danhMucController.navigator}</view-id>

Navigator() method return String which dynamic url i want redirect to: “pretty:home”.

For homepage, my pattern here:

<url-mapping id="home">
<pattern value="/"/>
<view-id>/faces/abc/def/index.xhtml</view-id>
</url-mapping>
<url-mapping id="register">
<pattern value="/re-gis-ter.html"/>
<view-id>/faces/abc/def/register.xhtml</view-id>
</url-mapping>

and these fine, for few other with fix .xhtml pages – it’t ok, too.