It's not a secret anymore!
The moose likes Struts and the fly likes Struts2 Problem in validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 Problem in validation" Watch "Struts2 Problem in validation" New topic

Struts2 Problem in validation

Rajive Jha

Joined: Apr 30, 2011
Posts: 2

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.

I agree. Here's the link:
subject: Struts2 Problem in validation
It's not a secret anymore!