in my jsp
its for welsh
<label class="error" id="titleerror">
<bean:message bundle="welsh" key="errors.title.required" />
</label>
for english
<label class="error" id="titleerror">
<bean:message key="errors.title.required" />
</label>
i want to access the value of keyattribute of message-resource of struts-config.xml in my action class or the value of bundle attribute of bean:message tag in my action class?
A couple of seconds on Google returned a first page full of examples. Try searching for "struts +access message bundle in action" or something similar.
rajeshkannan sella
Greenhorn
Joined: Apr 23, 2009
Posts: 25
posted
0
I tried googling its no worthful to meet my requirement.
What, specifically, are you trying to do? Normally the locale is set by the user's browser, or over-ridden by a session variable (as when the user wants to use a specific language no matter what the browser provides).
rajeshkannan sella
Greenhorn
Joined: Apr 23, 2009
Posts: 25
posted
0
Hi David,
Actually is there any option to set the Locale in jsp?
for welsh i want to set locale as cy and want to get that value in my action class?
will it be possible?
you can give a drop down with a key-value pair, containing the Locale ID as the key and name of the language as the value. Upon selecting the language, the key can be passed back to the action class, which you can set in your session.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Need Help in accesing the bundle / key value in action class