This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I'm using Struts Validator for validating date input. When the user enters the date something like 15/15/2004, for expected format MM/dd/yyyy, the date is interpreted as 03/15/2005.
My validation looks like thisI think this happens because of SimpleDateFormat. Has anyone found workarounds for this? One solution that I've thought of, as a last resort, is providing a client side date picker and making the field read-only. But I'd really like to have a solid server-side solution than relying on client-side scripting