aspose file tools*
The moose likes Struts and the fly likes valid when Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "valid when" Watch "valid when" New topic
Author

valid when

nachagoni rishi
Greenhorn

Joined: Oct 14, 2004
Posts: 26
I want to validate a field only if the value of the other field in the form is "XYZ" otherwise it should ignore the validations applied.

How can i acheive this using validator frame work.
I know we can use valid,but not able to figure out how to apply it to my requirement.
nachagoni rishi
Greenhorn

Joined: Oct 14, 2004
Posts: 26
For example i have 2 fields field1 and field 2.
Field1 should be validated only if the the value of field2 is "0216".
If field2 is not "0216 then it should not validate field1.
How can i acheive this using DynaValidatorForm.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: valid when