File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validator and two fields" Watch "Validator and two fields" New topic

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

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

Joined: Sep 12, 2003
Posts: 133
Sweet action. Thanks Andre!
Consider Paul's rocket mass heater.
subject: Validator and two fields
Similar Threads
difference between and validate() and validation.xml
comparing dates
validate() method & validation.xml
Form Validation and Delete using struts
How I can access session objects within Form object extended ActionForm class