• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 Problem in validation

 
Rajive Jha
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a date fields in jsp splitted into 3 text boxes , each text box corresponds to DD , MM & YYYY respectively.
So i have defined 3 Integer fields in my action to get those values.
Now I have to merge the three fields and for a date object to persist in Database.

Where i am stuck is how to validate in XML, so that i can validate against a date object and not three integer fields.
Also how to do validation like date should not be greater than current date .

Help is appreciated.

Thanks
Rajiv
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic