File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Specifying a message resource file within the Action class

 
Norman Rozental
Greenhorn
Posts: 6
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MessageResources resources = this.getResources(request, key);
 
Norman Rozental
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cheers Rick! Yep, worked like a treat! Thanks for your help.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic