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 Invalid field value for field Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Invalid field value for field "Date"" Watch "Invalid field value for field "Date"" New topic
Author

Invalid field value for field "Date"

Chandana Garlapati
Ranch Hand

Joined: Jul 06, 2009
Posts: 97
Hi,
I am getting the Invalid field value for field "todayDate". When i am entering all the fields and hits submit button the error is getting for date column.

my JSP file



validation.xml



can anyone please help me this out..
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18993
    
    8

If you format today's date as a string using that rule, you get "24/03/2011". If you look closely you will notice that string is not between the two strings "01/01/1990" and "01/01/2020". Only dates which are January 1 on a year between 1990 and 2020 will be valid; that's a test you can do to see if I have identified your problem or not.
Chandana Garlapati
Ranch Hand

Joined: Jul 06, 2009
Posts: 97
ya it's worked.. can you tell me how to format today's date as a string by accessing database MYSQL

Thanks...
Chandana Garlapati
Ranch Hand

Joined: Jul 06, 2009
Posts: 97
can anyone please help me...
Even without validation.xml the error is showing the same.
what is the mistake i am doing???

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Invalid field value for field "Date"