aspose file tools*
The moose likes Struts and the fly likes comparing dates Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "comparing dates" Watch "comparing dates" New topic
Author

comparing dates

akshaj nampelly
Greenhorn

Joined: May 18, 2005
Posts: 18
I have two dates A and B on a form. Date A is displayed while I entering date B. If date B is prior to date A, it has to show valid error message when I submit the page. I want to use <logic> tag for this comparison and error message. How to go about it? Code snippet is appreciated.

Akshaj
Sajan Patel
Ranch Hand

Joined: Oct 25, 2004
Posts: 77
On Submit you can call JAVAScript and in Java script you can do all comparing.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: comparing dates