You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Wendy Smoak <We...@asu.edu> on 2003/01/24 18:38:31 UTC

Validator validates on first form display (was RE: Validator won' t validate single required field)

I wrote:
> I know I'm missing something, because the struts-validator example
provided
> with 1.1b3 works fine. 

I think I found what's wrong... ChooseProfileForm was an ActionForm, not a
ValidatorForm.

I fixed that... now I have *too* *much* validation!  The very first time the
form is displayed, before the user has ever had a chance to type anything,
the error is displayed.

I don't understand why it wants to validate *before* the form is ever
displayed, instead of after the submit.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management