struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Garcia" <jogaco...@gmail.com>
Subject Re: PreffixMapper for language
Date Tue, 10 Jul 2012 07:37:53 GMT
Does not sound bad. Just try it.
Another option worth trying-out is urlrewrite: http://tuckey.org/urlrewrite/
With urlrewrite filter, you could set locale and forward to
/mypackage/myaction.

Saludos,
J.

On Mon, Jul 9, 2012 at 9:27 PM, JOSE L MARTINEZ-AVIAL <jlmagc@gmail.com>wrote:

> Last try:
> Hello,
>   I have a requisite to provide multilanguage in my app using a preffix in
> the action. So the URLs would be
>
> http://myserver/mypackage/myaction (for the default language)
>
> http://myserver/en/mypackage/myaction (for english)
>
> http://myserver/pt/mypackage/myaction<
> http://myserver/en/mypackage/myaction>(for
> portuguese)
>
> The actions will not change, so I was thinking of using the PreffixMapper
> (slightly modified to pass the language as a parameter for a interceptor
> that will take care of the Locale). Has somebody done something like this?
> Is there a better approach?
>
> Thanks.
>
> JL
>
>
> 2012/7/9 <jlmagc@gmail.com>
>
> > Sorry, It went through too early
> >
> >
> > Sent via BlackBerry from T-Mobile
> >
> > -----Original Message-----
> > From: jlmagc@gmail.com
> > Date: Mon, 9 Jul 2012 18:56:43
> > To: Struts Users Mailing List<user@struts.apache.org>
> > Reply-To: jlmagc@gmail.com
> > Subject: PreffixMapper for language
> >
> > Hello,
> >   I have a requisite to provide multilanguage in my app using a preffix
> in
> > the action. So the URLs would be
> >
> > http://myserver/mypackage/myaction (for the default language)
> >
> > http://myserver/en/mypackage/myaction (for english)
> >
> >
> >
> >
> > Sent via BlackBerry from T-Mobile
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message