struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Wang" <>
Subject newbie validator question: show value of a field in error
Date Tue, 16 Sep 2003 09:43:28 GMT
I have a dumb question re: struts validator:

How do I show the value of the offending field in the error message as
opposed to the field name?

i.e. if the field I want to validate is email, and the user types in "foo",
how do I show
"'foo' is not a valid email address"

as opposed to the more standard (or widely documented) error
"'Email Address' is not valid"


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message