I have just started using validator. For my first validation I used the "required" validation rule that comes with STRUTS validator. Required just checks to see if a field is blank and returns an error if it is.
My problem is the field will always be blank upon the initial visit to the page, so the error will always show even though the user didn't get a chance to make an error.
Does anyone know how to get around this?
N.D:"Anything worth having, takes time to get"
Joined: Jan 23, 2002
How are you going to the page for the first time? If it's an action, set the validate attribute of that action to "false".