Re: Sharing what I've learned: locale switching

2004-05-17 Thread Jan Normann Nielsen
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

RE: Sharing what I've learned: locale switching

2004-05-14 Thread None None
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

RE: Sharing what I've learned: locale switching

2004-05-14 Thread Joe Hertz
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.

RE: Sharing what I've learned: locale switching

2004-05-14 Thread None None
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

RE: Sharing what I've learned: locale switching

2004-05-14 Thread Zhang, Larry \(L.\)
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

RE: Sharing what I've learned: locale switching

2004-05-14 Thread None None
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

RE: Sharing what I've learned: locale switching

2004-05-14 Thread Wang, Yuanbo
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