File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes validation.xml to check 2 date fields -urgent help! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validation.xml to check 2 date fields -urgent help!" Watch "validation.xml to check 2 date fields -urgent help!" New topic

validation.xml to check 2 date fields -urgent help!

Liz Brown
Ranch Hand

Joined: Oct 22, 2002
Posts: 112
I am using validation.xml to validate the fields on the form. I could use it successfully with the required fields.
I want to use the validation.xml to compare 2 Date fields user enters.
Example: start date and end date.
How to mention a validation check in validation.xml for checking
end date is after start date ?
Anybody implemented it?
alan do
Ranch Hand

Joined: Apr 14, 2005
Posts: 354
no offense liz, but the answer is provided in the previous posting. you need follow the struts user guide example since you CANNOT use the provided struts validations and must write your own custom validation. i know it will work because i have done it before. no one will give you this fish (because it's a big fish), but how you can teach yourself how to fish since the manual is in front of you.

-/a<br />certified slacker...yes, my last name is 'do' - <a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: validation.xml to check 2 date fields -urgent help!
It's not a secret anymore!