Unfortunately, I don't know the answer to this question. I'd suggest
asking it on the UrlRewriteFilter mailing list.

On Wed, Feb 3, 2010 at 2:41 AM, Amir Latifi <amir.latifi...@gmail.com> wrote:
> Hi
> I don't know it's right place to ask or not.
> We have a project based on appfuse, we use url rewrite for localization by
> some rules like this:
>     <rule>
>         <from>/en</from>
>         <to type="redirect">/myHome.action?locale=en</to>
>     </rule>
>
>     <rule>
>         <from>/en/</from>
>         <to type="redirect">/myHome.action?locale=en</to>
>     </rule>
>
> First rule is ok but the second one which use /en/ redirects the page to
> this address:
> http://lcoalhost:8080/myHome.action?locale=en/
> The "/" cause the locale be "en/" instead of "en" so "en/" is not a valid
> locale, I can extends LocalFilter class to omit "/" but it doesn't seem the
> best way. I think LocaleFilter is not who add "/" at the end of URL. How can
> use "/en/"-like pattern to change the locale in a proper and clean way?
> Thanks
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to