Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
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
Tim Cooke
paul wheaton
Ron McLeod
Jeanne Boyarsky
Sheriffs:
Paul Clapham
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Struts
Getting MessageResources inside ActionForm
Manish Hatwalne
Ranch Hand
Posts: 2596
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I know how can I get resource inside a
struts
action with following code -
MessageResources resources = getResources(request);
but getResources(request) method is not available inside a class that extends from ActionForm, how can I get hold of MessageResources inside ActionForm?
TIA,
- Manish
Manish Hatwalne
Ranch Hand
Posts: 2596
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have found the answer, here it is if anyone needs it -
//the name specified in struts-config.xml file for <message-resources> element MessageResources resources = getServlet().getInternal().getMessageResources("application");
moose poop looks like football shaped elk poop. About the size of this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Accessing the ApplicationResources properties file?
how to call properties file in an application
Struts MessageResources and Dependancies of Manager/Logic
Getting values from properties in validate-using multiple message-resources in struts
testing Action class through StrutsTestCase
More...