You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Amit Keshav Kulkarni <Am...@infosys.com> on 2003/03/20 03:44:54 UTC

Problem with Struts Validator

Hi All,

I am using the Struts Validator package for Validations in my application.

Let us say there are three fields in one of my forms
Name, Last name and Email.
I have required and minLength validation for Name,
required and minlength for last name
and required and email validation for Email field.

The problem is that the errors that are displayed are those because of application of a single rule
i.e. if I enter valid value for name and leave the last name blank and enter an invalid email address,
I first get only the error for last name, saying last name is required.
After I enter a valid last name, it gives an error saying email id invalid.

Is there any way by which I can get both the last name required and invalid email id error messages
at the same time?

Thanks and Regards,
Amit




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