This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread 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 Introducing JavaFX 8 Programming this week in the JavaFX forum!
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
It's not a secret anymore!