users@jersey.java.net

Re: [Jersey] I18N for Jersey's MVC/templating support.

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 02 Apr 2009 09:43:08 +0200

Hi Casper,

You might want to send an email to users_at_glassfish.dev.java.net.

I am not knowledgeable enough in this area and would certainly like to
know if there is a solution. A filter solution as Chris suggests might
work e.g. it could change the request header value.

Paul.

On Apr 2, 2009, at 12:41 AM, Casper Bang wrote:

> I'm happily using the MVC and JSP templating mechanism of Jersey,
> however I have a problem as to i18n when this is part of an
> addressable resource i.e. /lang/{language}/. Using the formatting
> library that's part of JSTL isn't an option, as it relies solely on
> the language specified in he request header. I tried a few things
> thus far but can't find a reliable and scalable solution. Only thing
> i can think of now is to write my own tag handler for some custom
> tag, but before looking into that I just wanted to hear if the
> community has any input. Any ideas much appreciated. :)
>
> /Casper