Hi,
I have been using
struts inbuilt validation framework for my application.
i m using it to validate date format in 'dd/MM/yyyy'
in my validation.xml file,
<field property="fromDate" depends="date">
<arg key="testReportBean.fromDate"/>
<var>
<var-name>datePattern</var-name>
<var-value>dd/MM/yyyy</var-value>
</var>
</field>
i want date like '1/1/2006' as a valid date. Dont want user to strictly input '01/01/2006'. the above scriptlet strictly want the date entered with leading zeros.
In all the material available on internet, i hv read tht if var-name is 'datePattern' then it should not validate strictly for the date with leading zeros.
But its not working for me.
Can any one pls help me on this issue.
Thanx.