Win a copy of Design for the Mind this week in the Design 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