• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Date Validation not ​validating 01/01/2ee​0 date in struts 1.2​

 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I am trying to add date validation in validation.xml file, i have it setup as
below, it validates properly data entry like 0A/01/2012 or 01/A2/2012
but it makes date 01/01/2ee3 to be a valid date which is clearly not,

what am i missing


<constant>
<constant-name>dateFormat</constant-name>
<constant-value>MM/dd/yyyy</constant-value>
</constant>

<field property="expirationDate" depends="required,date">
<arg key="label.expirationDate"/>
<var><var-name>datePattern</var-name><var-value>${dateFormat}</var-value></var>
</field>





Ashish
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic