Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Liz Brown
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 354
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic