Register / Login
Win a copy of
Penetration Testing Basics
this week in the
How can I make a friendly URL like www.example.com/username ?
posted 7 years ago
I am new to
and this is my first JSF project.
I have written some friendly URL like "www.eample.com/customer/name" for this project, which is working great. But the URL like "www.example.com/username" just makes me headache.
For the "www.eample.com/customer/name" URL, what I need to do is writting a CustomerRedirectFilter class and add
Now, I have written a UsernameRedirectFilter class, but do not know how to set the <url-pattern> in the web.xml.
Apparently, I can not set it as
because /* includes all the other url-pattern i already have. So how
I figure out this problem?
Any helps will be appreciated.
url pattern in servlet filter
url-pattern for filters
Problems using displaytag + faces: + webflow: servlet conflict
what is displaytag filter. How is it used ?
Page is displaying without name in address bar