jQuery in Action, 3rd edition
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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>
I agree. Here's the link: http://aspose.com/file-tools
subject: how to use ActionMessages
It's not a secret anymore!