Yes, sorry. I wasn't aware the request is passed into the validate. Thanks
Hal
-Original Message-
From: Deadman, Hal [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 15:09
To: [EMAIL PROTECTED]
Subject: RE: How do I Internationalize ActionError parameter values?
The reque
;[EMAIL PROTECTED]'
> Subject: RE: How do I Internationalize ActionError parameter values?
>
>
> So are you suggesting that I pass the request object to my ActionForm
> constructor when I create it in my action?
>
> -Original Message-
> From: Deadman, Hal [mailto:[E
> -Original Message-
> From: Kyle Robinson [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 04, 2001 4:53 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: How do I Internationalize ActionError parameter values?
>
>
> Thanks Hal. However, I need to get the locale
nal Message-
> From: Kyle Robinson [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 04, 2001 4:53 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: How do I Internationalize ActionError parameter values?
>
>
> Thanks Hal. However, I need to get the locale in the
> valida
Thanks Hal. However, I need to get the locale in the validate() method of
my ActionForm object. Any thoughts?
-Original Message-
From: Deadman, Hal [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 13:24
To: [EMAIL PROTECTED]
Subject: RE: How do I Internationalize ActionError
Getting the locale object is easy. If you are in an Action perform method,
just call:
getLocale(request);
If you are not in the Action class, you can do what that method does,
Locale locale = (Locale) session.getAttribute(Action.LOCALE_KEY);
if (locale == null)
locale = Locale.getDefault()
6 matches
Mail list logo