aspose file tools*
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I want to access the value of keyattribute of message-resource of struts-config.xml in my action