Try this:
<html:messages id="success" message="true" />

If you omit message="true" then the tag only looks for error messages under
Action.ERROR_KEY.  With the message="true" it will look for messages under
Action.MESSAGE_KEY.

> -----Original Message-----
> From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 14, 2003 1:26 PM
> To: Struts Users Mailing List
> Subject: Using the html:message tag
>
>
> I want to display messages in my html when the action completes
> successfully
> (think "Query successfully processed" type messages.)
>
> I'm guessing I use the <html:messages> tag but it doesn't seem to be
> working.
>
> In my code I have:
>   ActionMessages messages = new ActionMessages();
>   messages.add("success", new ActionMessage("mdxquery.success"));
>   saveMessages(_request, messages);
>
> And in my html I have:
> <html:messages id="success"/>
>
> What am I doing wrong?
>
> Thanks!
>
> --
> Sloan
>
>
>
> ---------------------------------------------------------------------
> 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