On Thu, 18 Apr 2002, Tero P Paananen wrote:
> Date: Thu, 18 Apr 2002 11:35:49 -0400
> From: Tero P Paananen <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: Multi-Lingual support
>
> > Hi, Guys,
> >
> > I followed exactly the suggestions of setting up the
> > languagues in the browser
> > but no progress at all. Anything else i can do?
>
> In your JSP pages / action classes, check what's
> the locale set in the session object.
>
> session.getAttribute( Action.LOCALE );
>
Note that you can also *set* this attribute, as well as get it. This
would be useful, for example, if your application wanted to offer a
"switch languages" action.
One other thing you will probably need to do is make sure that the
character encoding of your output pages supports the language you are
using. For example, I had to change the page directive in the Struts
example app to this in order for Japanese to work:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
> -TPP
Craig
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>