You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Andy Kriger <ak...@greaterthanone.com> on 2002/09/25 21:51:28 UTC

form validation text coloring question

I would like to have our form change text color of field labels to red if
they are required fields that were not filled out when the form was
submitted (a common feature of forms).

Currently, we are doing custom validation that sets a flag. The JSP checks
this flag in <logic:present> tags and creates the a <font></font> wrapper
around the field label that sets the text color to red. This is quite
cumbersome as it puts a lot of logic tags into the code.

The html:errors does not work since it just adds additional text and it
can't wrap existing text.

What solutions have folks come up with for this problem?

thx
andy



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>