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

Issues with <html:messages >

 
Rishi Chopra
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have below mentioned code in my Action class method

ActionMessages messages = new ActionMessages();
ActionMessage message = new ActionMessage("error.unspecified");
messages.add("unspecified",message);
saveMessages(request, messages);
return mapping.getInputForward();

and the following code in the JSP page to which this is forwarded.

<logic:messagesPresent message="true" >
Messages:
<html:messages id="message" message="true" >
<bean:write name="message" />

</html:messages>

</logic:messagesPresent>


But somehow i get this error saying that

javax.servlet.jsp.JspException: Cannot find bean: "message" in any scope

I am really struck.. Struts version 1.2.9

Thanks & Regards
Rishi Chopra.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic