This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes usage of ActionMessages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "usage of ActionMessages" Watch "usage of ActionMessages" New topic
Author

usage of ActionMessages

ashwin deshpande
Greenhorn

Joined: Jun 14, 2004
Posts: 6
hi,

Im trying to use ActionMessages in my jsp...

here is the code snippet...

----------------------------------------------
MyActionClass

ActionMessages messages = new ActionMessages();
messages.add("noRecordsFound", new ActionMessags("records.notFound"));
saveMessages(req, messages);

return mapping.getInputForward();
-----------------------------------------------

myJSP.jsp

actually here i tried using
<logic:messagesPresent> tag, <logic:match> tag and <html:messages> tag, but i just cant seem to get it right... i would really appreciate if you could post the correspond jsp code for the above messages...

thanks

ashwin


If at first you dont succeed, take the 5th !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: usage of ActionMessages