my dog learned polymorphism*
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 Android Security Essentials Live Lessons this week in the Android forum!
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!
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
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