File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "usage of ActionMessages" Watch "usage of ActionMessages" New topic

usage of ActionMessages

ashwin deshpande

Joined: Jun 14, 2004
Posts: 6

Im trying to use ActionMessages in my jsp...

here is the code snippet...


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

return mapping.getInputForward();


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...



If at first you dont succeed, take the 5th !
I agree. Here's the link:
subject: usage of ActionMessages
jQuery in Action, 3rd edition