• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic