This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting MessageResources in ActionForm Validate

 
Mark Reyes
Ranch Hand
Posts: 426
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

This question might have been asked many times but I have tried googling for sites but found no answers yet.

I just want to know on how I can have a reference on the nice MessageResources class of Struts in my action form validate method so
I wont hardcode my messages?

I have tried the following code but it was deprecated already.



I also found this piece of code but it keeps on returning null messageresource object.



I know I can get it from my action class but I need to know if I could access it in both the validate and reset method of the action form. Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic