Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

usage of ActionMessages

 
ashwin deshpande
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic