There is quite a collection of sources for this, using validator and the
.properties files.  Store the error messages in the .properties file and
then reference them in the returned form with errors.

I don't use jsps so I can't give you a working example, but there are a few
in the struts documentation somewhere.

Cheers

Simon

----- Original Message -----
From: "michael wimmer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, March 19, 2003 3:47 PM
Subject: error handling


> Hi,
>
> being pretty new to Sturts, I just finished a simple form with the
> according FormBean and Action classes.
>
> Now I face the problem, that I should display the error Text if an entry
> is missing and change the style of the input field.
>
> <html:errors property="..."/> works fine for displaying the error
> message, but I was just wondering if there is a way to determine if
> there is an error set for the property. e.g. storing the errortext in a
> variable before displaying and changing the style of the field depending
> if the variable is empty or not.
>
> regards,
>
> Michael
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to