You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Aleksandar Matijaca <al...@jkafein.com> on 2003/06/17 01:35:22 UTC

validation problem

Hi there,

this is my first post!  I have inherited a web-based struts
project that is frankly a mess...  I have managed to straighten
out most things except something that is driving me nuts - this
is the problem:

Validation - I have 3 fields that need to be validated - if I do not
enter anything on all three fields, validation happens - I display
the messages in the JSP using the <logic:messagesPresent> 'loop'.
However, the problem occurs if I fill in one of the fields, it
STILL reports that the first field is in error (the other two
which are unfilled are in error alos - this is a good thing), even though
there is
a value there (the validation is simple 'required').  If I fill in
ALL THREE FIELDS, then validation is OK, and I go on to the next
page.  There seems to be almost some kind of a "caching" of errors
that is happening, and I don't know how to "turn it off".

Thanks Alex.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org