File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 Problem in validation" Watch "Struts2 Problem in validation" New topic
Author

Struts2 Problem in validation

Rajive Jha
Greenhorn

Joined: Apr 30, 2011
Posts: 2
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts2 Problem in validation
 
Similar Threads
Struts Validation for non formdata
problem reg Validator
validations in java script
Page attribute in validator
date validation for a combo box entry