Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
rajeshkannan sella
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic