struts-user mailing list archives

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

<logic:messagesPresent>

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

</logic:messagesPresent>



----- Original Message ----- 
From: "None None" <fzammett@hotmail.com>
To: <user@struts.apache.org>
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
it
> 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
are,
> 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! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/
>
>
> ---------------------------------------------------------------------
> 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