ARGH... I found my problem... simple typo in my message resouce file... the html:errors tag just wasn't finding the right key for one of my errors, and thus wasn't displaying anything, making it look like I was only gettiing one. Sorry folks, false alarm :)


From: Iván Rodríguez <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: Validation problem
Date: Tue, 18 May 2004 17:43:16 +0200

Try:

<logic:messagesPresent>

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

</logic:messagesPresent>



----- Original Message -----
From: "None None" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Get 200+ ad-free, high-fidelity stations and LIVE Major League Baseball Gameday Audio! http://radio.msn.click-url.com/go/onm00200491ave/direct/01/



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to