I came across that, but I'm getting the following error:

javax.servlet.ServletException: Cannot find bean error in any scope

Does the ActionErrors object get set as another name? I'm using Struts 1.1, everything I'm reading seems to agree that it should be named "error"...

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]


_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



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



Reply via email to