This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Specifying a message resource file within the Action class

 
Norman Rozental
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a struts config file (a module) with two message-resource definitions:

How do you I specify in the Action class (not the .jsp) to use the resource file using key="aKey"?
I know how to do it in a .jsp, but I am having trouble from the Action class.
Any help would be greatly appreciated.
eNormAce.
 
Rick Hightower
Author
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MessageResources resources = this.getResources(request, key);
 
Norman Rozental
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cheers Rick! Yep, worked like a treat! Thanks for your help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic