struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Reumann <>
Subject Re: html:messages
Date Fri, 14 Jun 2002 00:07:07 GMT

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

wEBc> ----------------ACTION CODE---------------------------
wEBc> ActionMessages amsgs = new ActionMessages();                
wEBc> ActionMessage am = new ActionMessage("drilldown.results.nomatches");
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: <>

View raw message