This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Struts and the fly likes Issues with <html:messages > Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Issues with <html:messages >" Watch "Issues with <html:messages >" New topic

Issues with <html:messages >

Rishi Chopra
Ranch Hand

Joined: Mar 07, 2004
Posts: 108
Hi all,

I have below mentioned code in my Action class method

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

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

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



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.

Life is Beautiful Learn to See it.........
I agree. Here's the link:
subject: Issues with <html:messages >
It's not a secret anymore!