You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Srinivas Kusunam <SN...@kcc.usda.gov> on 2003/11/14 20:44:11 UTC

Question on Locale / Internationalization (Action and Message resources)

Hi,
       I have a question on Action class and Message resources.

      My application have to support both English and Spanish users. In my action classes I need to use Message resources class the following way.

    Action class:
       
	Message resources resource = getResources(request);			
                String addKEY = resource.getMessage((Locale)getLocale(request),"button.OfferWaterBank.Add");

        Do I need to pass the locale in my every call to resource.  My assumption is getResources(request) should set Users Locale in MessageResource (from Session) and return it so that I can get the KEY specific to locale in my next calls, rather than passing locale for every call. 

             Please correct me if Iam wrong.

Thanks,
Srini
        

Srinivas Kusunam

Sr. Software Engineer
US Department of Agriculture
Missouri, USA.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org