Is there a standard way of handling invalid user input in date / number
fields etc. I can forsee 2 possible solutions.
1. Declare date properties on your form as java.lang.Strings and
validate / parse them explicitely.
2. Declare date properties as java.util.Dates, have struts parse dates,
check for null form properties and use request.getParameter() to see if
an invalid date was entered.
I prefer option 2. Are there any libraries around to do this generically
or another way that I haven't thought of? (NB i'm a newbie).
Thanks,
Lance.