Hi,

  I think this discussion thread from the www.theserverside.com will
give you what u r looling form.

http://www.theserverside.com/discussions/thread.tss?thread_id=30176
  
Sudheer

-----Original Message-----
From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 28, 2004 12:23 AM
To: 'user@struts.apache.org '
Subject: ActionMessages problem


Hello,
I'm sure it's something simple, but I can't get my ActionMessage to display
in my JSP page.

Action class code:
ActionMessages messages = new ActionMessages();
messages.add(ActionMessages.GLOBAL_MESSAGE, new
ActionMessage("errors.includedAmountGreaterThanAmountSpecified"));
saveMessages(request, messages);

JSP code:
<logic:messagesPresent message="true">
<img border="0" align="center" src="../images/red_x.gif"/><html:messages
id="message" message="true"><bean:write name="message"/></html:messages>
</logic:messagesPresent>

I know the logic:messagesPresent is working because the image is showing up
on the page, just not the message.

What am I missing or doing incorrectly?

Thanks,
Brian Barnett

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to