struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "michael wimmer" <m.wim...@ecom-it.at>
Subject error handling
Date Wed, 19 Mar 2003 14:47:48 GMT
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message