Re: how to hide all the suffix of the url

Splash Forums PrettyFaces Users how to hide all the suffix of the url Re: how to hide all the suffix of the url

#21876

qeryui
Participant

Oh,there’re something wrong with the regular expression charachter of “.”

if

<pattern value=”/#{ /.*/ bean.url }” />

is used, /.*/ couldn’t match any url, and exception would occur

if

<pattern value=”/#{ /a*/ bean.url }” />

is used, it works well

if

<pattern value=”/#{ /a.*/ bean.url }” />

is used, it works well, it would match url like “/asdds” and so on

so, when the character of “.” is put the ahead of the #{ //}, it may lead something wrong