File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes future date 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 "future date validation" Watch "future date validation" New topic

future date validation

sandeep chalishazarwala

Joined: Dec 28, 2008
Posts: 25
Hello Everybody,
I want to do validation for future date using validate method in struts 1.2 with validator form.(not with validation.xml)
Please guide me with proper answer

Thanking You
Arun R. S. Chandran
Ranch Hand

Joined: Oct 08, 2008
Posts: 81

Hi Sandeep,

You can try with JavaScript. I'm not sure struts is providing other techniques for the same.

Thanks and Regards ,
David Newton

Joined: Sep 29, 2008
Posts: 12617

Could you be more specific?

Are you asking how to determine if a date lies in the future? Or are you asking how to use the Struts 1 validation framework?
I agree. Here's the link:
subject: future date validation
Similar Threads
Very Urgent : Fututre Date validation using struts validation
Version 5 of the SCWCD
Client side validation using common validators
Validation for Future date
Clear validation message dynamically for the Datepicker