struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Hertz" <jhe...@speakeasy.net>
Subject RE: ActionError/ActionMessage
Date Fri, 18 Jun 2004 17:28:03 GMT

Figured out the behavior. It works if I do this-

<html:messages id="message" message="true">   <-- Gets the non-validator
generated messages -->
<EM class=red><bean:write name="message"/></EM><BR>
</html:messages>

 <html:messages id="message">                <-- Gets validator
generated messages -->
<EM class=red><bean:write name="message"/></EM><BR>
</html:messages>

Now can someone explain to me what the purpose of message="true" is

(and yes, the parameter naming question was a huge brainfreeze)


> -----Original Message-----
> From: Joe Hertz [mailto:jhertz@speakeasy.net] 
> Sent: Friday, June 18, 2004 12:28 PM
> To: 'Struts Users Mailing List'
> Subject: ActionError/ActionMessage
> 
> 
> Using a 6/10 Nightly the I have a page with the following JSP snippet:
> 
> <html:messages id="error">
> <EM class=red><bean:write name="error"/></EM><BR> </html:messages>
> 
> This works fine with validator generated error messages.
> 
> This works if in my Action I call the deprecated 
> this.saveErrors(). If I call this.saveMessages() it does not. 
> 
> Same holds true for
> 
> <html:messages id="message">
> <EM class=red><bean:write name="message"/></EM><BR> </html:messages>
> 
> Has the identifier changed to something else then?? I suspect 
> it's just Friday and I'm just brainfreezing. N pairs of 
> eyeballs would be appreciated.
> 
> -Joe
> 
> > -----Original Message-----
> > From: Nick Heudecker [mailto:nick@systemmobile.com]
> > Sent: Friday, June 18, 2004 11:35 AM
> > To: Struts Users Mailing List
> > Subject: Re: Unit Testing with MockStrutsTestCase -- 
> > non-string request parameters
> > 
> > 
> > Hi George:
> > 
> > Maybe this will help:
> > 
> > http://sourceforge.net/forum/message.php?msg_id=1812671
> > 
> > 
> > George Steimer wrote:
> > > Hi,
> > > 
> > > Does anyone know if there is a way to put non-string
> > objects into the
> > > request for a unit test using MockStrutsTestCase?  My
> > problem is that
> > > my dyna form uses a form file for an upload, and the
> > > addRequestParameter methods on MockStrutsTestCase only 
> > accept String
> > > and String[] for values.
> > > 
> > > And help would be greatly appreciated.
> > > 
> > > Thanks,
> > > 
> > > George
> > > 
> > > 
> > > George Steimer
> > > Technology Services Group
> > > georges@tsgrp.com
> > > (312)372-7777
> > > 
> > > This message is for the designated recipient only and may contain
> > > privileged or confidential information.  If you have 
> received it in 
> > > error, please notify the sender immediately and delete the 
> > original.
> > > Any other use of the email by you is prohibited.
> > > 
> > > 
> > > 
> > 
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > > 
> > 
> > 
> > --
> > Nick Heudecker
> > System Mobile, Inc.
> > Email: nick@systemmobile.com
> > Web: http://www.systemmobile.com
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> > 
> > 
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message