struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: html:messages
Date Fri, 14 Jun 2002 13:55:20 GMT

Hey that worked...  (Needed to do both parts)

I was thinking the <html:message> tag would function alot like the 
<html:errors> tag.  Why would it not work the same?

-----Original Message-----
From: maillist []
Sent: Thursday, June 13, 2002 8:07 PM
To: struts-user
Subject: Re: html:messages

On Thursday, June 13, 2002, 6:22:54 PM, 

wEBc> ----------------ACTION CODE---------------------------
wEBc> ActionMessages amsgs = new ActionMessages();                
wEBc> ActionMessage am = new 
wEBc> amsgs.add(ActionMessages.GLOBAL_MESSAGE,am);
wEBc> request.setAttribute(Action.MESSAGE_KEY, amsgs); 
wEBc> return (mapping.findForward("continue"));                

           request.setAttribute(Action.MESSAGE_KEY, amsgs);
           saveMessages( request, amsgs );

     If the above doesn't help then try in the jsp page:

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

    I'm new to using the messages myself, so probably someone else can
    help out more, but I know the above works for me.



"As the light changed from red to green to yellow and back to red
again, I sat there thinking about life. Was it nothing more than a
bunch of honking and yelling? Sometimes it seemed that way."
  -Jack Handey

To unsubscribe, e-mail:   
For additional commands, e-mail: 

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message