Use the property attribute. <html:messages property="success" message="true"/>
Also take a look at the html-messages.jsp file that is part of the struts-exercise-taglib application that ships with Struts. Sri -----Original Message----- From: Sloan Seaman [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 2:09 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Using the html:message tag Jerome, I tried it but it didn't work. Here is what I have in my HTML: <html:messages id="success" message="true" /> And here is what is in my action file: ActionMessages messages = new ActionMessages(); messages.add("success", new ActionMessage("mdxquery.success")); saveMessages(_request, messages); where mxdquery.success in a value in my ApplicationResources.properties file.. I'm not sure about the id attribute. The API for ActionMessages.add says the first string is the property while the docs on the id attribute say it is the name scope of the JSP bean(??)... Idea's? -- Sloan ----- Original Message ----- From: "Jerome Jacobsen" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, February 14, 2003 1:47 PM Subject: RE: Using the html:message tag > 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] > > --------------------------------------------------------------------- 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]