"Hartmut Bernecker" <[EMAIL PROTECTED]> wrote:


> Hi,
> 
> how can I get a locale object in the construtcor of a ActionForm class?
> In a login-form I want to set a selectbox containing language
> descriptions to the right value ("de" or "en" or "fr" etc). I think the
> best way to do that would be an initialisation with the current locale
> in the constructor of the ActionForm bean:
> 
> public LoginForm() {
>    setLanguage("de");
> }
> 
> BTW: The locale is set by <html:html locale="true"> in the JSP page.

I don't think it shoudl be done in the constructor. if you really want 
to do it in an ActionForm and not Action, you should think about the
method reset which gets the request as parameter.

--
gR

Reply via email to