wood burning stoves*
The moose likes Struts and the fly likes how to use ActionMessages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to use ActionMessages" Watch "how to use ActionMessages" New topic

how to use ActionMessages

santhoshkumar samala
Ranch Hand

Joined: Nov 12, 2003
Posts: 156


till now, i am using struts errors i.e, ActionErrors class for displaying action errors, and iam writing key and value pairs in ApplicationResources.properties, now the ActionErrors is to be replaced by ActionMessages. so If I use ActionMessages can I write key,value pairs in same ApplicationResources.properties or should I need to keep another file called MessageResources.properties.

please help

thanks in advance

santhosh<br />SCJP,SCWCD
alan do
Ranch Hand

Joined: Apr 14, 2005
Posts: 354
you can use the same old ApplicationResources.properties . ActionError(s) extended ActionMessage(s) in the pre-1.2.x Struts.

-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>
subject: how to use ActionMessages
Similar Threads
html:error to print specific error
How to ActionErrors and ActionError
Using ActionErrors with Exceptions
Using more than 1 properties file with Action Form
ActionMessages in STRUTS 1.1 Please help !!!