You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Erez Efrati <er...@netmedia.net.il> on 2003/05/11 00:22:52 UTC
ruin the silenc - here's a question...
Hi,
I am little confused here about the locale story.
How does the validator chooses the locale? I mean, where the locale is
set, for the validator to choose the right formset?
Thanks for the help,
-- Erez
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: ruin the silenc - here's a question...
Posted by Erez Efrati <er...@netmedia.net.il>.
Thanks again for the prompt reply, really appreciate it,
Erez
-----Original Message-----
From: Jason Lea [mailto:jason@kumachan.net.nz]
Sent: Sunday, May 11, 2003 12:47 AM
To: Struts Users Mailing List
Subject: Re: ruin the silenc - here's a question...
Erez Efrati wrote:
> Hi,
>
> I am little confused here about the locale story.
> How does the validator chooses the locale? I mean, where the locale is
> set, for the validator to choose the right formset?
>
> Thanks for the help,
>
> -- Erez
The user's locale is stored in the session under the
org.apache.struts.Globals.LOCALE_KEY
You can set it with
session.setAttribute(Globals.LOCALE_KEY, locale)
Validator and the Struts tags use this for determining the
MessageResource to use.
--
Jason Lea
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: ruin the silenc - here's a question...
Posted by Jason Lea <ja...@kumachan.net.nz>.
Erez Efrati wrote:
> Hi,
>
> I am little confused here about the locale story.
> How does the validator chooses the locale? I mean, where the locale is
> set, for the validator to choose the right formset?
>
> Thanks for the help,
>
> -- Erez
The user's locale is stored in the session under the
org.apache.struts.Globals.LOCALE_KEY
You can set it with
session.setAttribute(Globals.LOCALE_KEY, locale)
Validator and the Struts tags use this for determining the
MessageResource to use.
--
Jason Lea
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org