wood burning stoves 2.0*
The moose likes Struts and the fly likes I want to access the value of keyattribute of message-resource of struts-config.xml in my action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "I want to access the value of keyattribute of message-resource of struts-config.xml in my action" Watch "I want to access the value of keyattribute of message-resource of struts-config.xml in my action" New topic
Author

I want to access the value of keyattribute of message-resource of struts-config.xml in my action

rajeshkannan sella
Greenhorn

Joined: Apr 23, 2009
Posts: 25
Hi All,

The following two lines are in strutsconfig.xml
one for english and one or welsh language

<message-resources parameter="com.ips.ApplicationResources" null="false"/>
<message-resources parameter="com.ips.ApplicationResources_cy" key="welsh" null="false" />

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?

can you suggest me the options?

Thanks
Rajesh
 
 
subject: I want to access the value of keyattribute of message-resource of struts-config.xml in my action
 
Similar Threads
Need Help in accesing the bundle / key value in action class
Struts Modules and message resources
Getting values from properties in validate-using multiple message-resources in struts
i have a requirement in struts, need to use 2 properties file for two jsp's?
serveral ApplicationResources .properties for one project?