This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm trying to valitade a time field in a form using Struts-validator (Struts 1.2). This is how I've configured validation.xml: <form ....> ... <field property="time" depends="required,date"> <arg0 key="test.time"/> <var> <var-name>datePattern</var-name> <var-value>HH:mm</var-value> </var> </field> ... </form>
The problem is that the validator always raises an validation error, no matter what data is informed, for example, like this 13:00.
Is my validation.xml correct? How do I validate a Time field?