Re: Rewrite every *.jsf

Splash Forums PrettyFaces Users Rewrite every *.jsf Re: Rewrite every *.jsf

#20596

Ok, in that case a lookahead should work as well – I guess Digester doesn’t like <, even in quoted strings. Though, looking at this regex, I don’t think you even need the lookahead, since there’s no way a ‘.’ could be matched in the first place.

^([^?]*)/([^?/.]+)(?.*)?$

Or you could just do the same in a Processor.

However, in looking at your example again, I don’t think you really want to be using rewrite rules for this.

Why not just use URL mappings, which is what are really intended to solve this issue.

<url-mapping>
<pattern value="/login" />
<view-id value="/login.jsf" />
</url-mapping>

You’ll have to set up multiple mappings, but this will work. Query strings are automatically handled and propagated for you.