Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Specifying a message resource file within the Action class  RSS feed

 
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
Boost this thread!