File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Validator and two fields Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validator and two fields" Watch "Validator and two fields" New topic
Author

Validator and two fields

Eric Sexton
Ranch Hand

Joined: Sep 12, 2003
Posts: 133
I have a form that has two dates on it. I want to write custom validate method that verifies that the first date is not bigger than the second date. Is there a way to get 2 fields from the form into a single validate method?
Andre Mermegas
Ranch Hand

Joined: Jun 20, 2001
Posts: 158
you can probably start by checking out this
http://www.raibledesigns.com/page/rd/20030226#struts_validator_validating_two_fields


--=( Andre Mermegas )=--
Eric Sexton
Ranch Hand

Joined: Sep 12, 2003
Posts: 133
Sweet action. Thanks Andre!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validator and two fields
 
Similar Threads
Form Validation and Delete using struts
comparing dates
How I can access session objects within Form object extended ActionForm class
difference between and validate() and validation.xml
validate() method & validation.xml