struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Iván Rodríguez <>
Subject Re: Validation problem
Date Tue, 18 May 2004 15:43:16 GMT


    <html:messages id="error">
      <li><bean:write name="error"/></li>


----- Original Message ----- 
From: "None None" <>
To: <>
Sent: Tuesday, May 18, 2004 5:32 PM
Subject: Validation problem

> Hello again... I'm playing with validation for the first time, and I got
> almost working completely, one remaining problem...
> In my ActionForm validate() method, I am checking two elements for errors,
> In my test case, both should be getting flagged as incorrect (and they
> I can see that both blocks of code are executing, so I am rather certain I
> have two ActionError objects being added to the ActionErrors collection
> being returned from validate()).
> The problem is, I'm only getting one of them displayed back to me.  Here's
> what I'm doing in the JSP:
> <font color="#ff0000;">
> <html:errors/>
> </font>
> My understanding is that the html:errors tag should be iterating over the
> collection and displaying all the errors (even if not in a format I'd be
> happy with, that's the next problem).  Why am I only seeing the first one
> though?  What am I missing?  Thanks all!
> _________________________________________________________________
> MSN Toolbar provides one-click access to Hotmail from any Web page - FREE
> download!
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message