struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rama Krishna" <krishko...@hotmail.com>
Subject Re: <html:errors> Presentation Questions
Date Tue, 07 Aug 2001 16:22:43 GMT

----- Original Message -----
From: <Brian.Duchouquette@transplace.com>
To: <struts-user@jakarta.apache.org>
Sent: Tuesday, August 07, 2001 9:15 AM
Subject: <html:errors> Presentation Questions


> All,
>
> I have 2 questions:
>
> 1.  When I use <html:errors/>, the following output is rendered:
>
>       Last Name is required.  First Name is required.
>
>       Is it possible to use the <iteration> tag to go through the list and
> provide a break between the items?

you can have a <br> in your resource file itself.
error.last.required=Last Name is required<br>


>
> 2.  Validation already occurs when my input  form first appears (and error
> messages appear without the user first submitting the form).  What is the
> easiest
>       way to avoid validation until the user submits the  form?
>

you can use an if condition for the *action* value
eg: if(action.equals("create")) return null;


> Thanks,
> Brian
>
>

rama.

Mime
View raw message