None None wrote:
Because this might be helpful to others, and because I probably would
have spent another couple of hours figuring it out on my own without
the help of some people on this lsit, I wanted to give back as much as
I could. So, here's a consolidated bit of info I've learned about
s
vadocs would be useful.
Thanks again!
From: "Joe Hertz" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: RE: Sharing what I've learned: locale swi
Suggestion:
Rather than using the GLOBALS.Locale_Key in the session, use the
action.setLocale() method. This way you won't have to be changing your
code if the internals change.
For example, to decide between, say English and Russian, you can do this
and never mess with the httpSession directly.
That's good to know too, thanks very much Larry!
From: "Zhang, Larry (L.)" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: Sharing what I've
age tag is used in struts.
Thanks.
Larry Zhang
-Original Message-
From: Wang, Yuanbo [mailto:[EMAIL PROTECTED]
Sent: Friday, May 14, 2004 2:40 PM
To: Struts Users Mailing List
Subject: RE: Sharing what I've learned: locale switching
Thanks for sharing the information. Basically s
ocale(request),
"messages.deleteFailed"));
A bit shorter than what I had. Excellent, thank you!
From: "Wang, Yuanbo" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAI
Thanks for sharing the information. Basically struts using the following
method to decide which Locale is in the session, then load the
corresponding resource bundle:
protected Locale getLocale(HttpServletRequest request)
{
HttpSession session = request.getSession();
Locale loc
7 matches
Mail list logo