It's not a secret anymore!*
The moose likes Struts and the fly likes I want Struts validator to ignore fields not present Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "I want Struts validator to ignore fields not present" Watch "I want Struts validator to ignore fields not present" New topic
Author

I want Struts validator to ignore fields not present

Trevor Brown
Greenhorn

Joined: Aug 09, 2011
Posts: 1
I have one struts form that has user information such as name and password. Most of the fields are defined as required using the validator. I want to have an abbreviated .jsp for a password reset page that uses the same form but would not include fields that are required on the more verbose .jsp page. How can I maintain the validation rules but allow them to disregard any fields not present in the abbreviated page?

valdwhen present?

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I want Struts validator to ignore fields not present
 
Similar Threads
Help regarding struts validator framework (version 1.2.7)
Auto Validation enable/disable For Specific Events?
Struts Validator Client side question
Problem with 2 ActionForms for one JSP
Date picker in struts 1.1