This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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


Win a copy of Head First Android this week in the Android forum!
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
Sheriff

Joined: Oct 14, 2005
Posts: 19693
    
  10

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"
 
It's not a secret anymore!