Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to do the Date validation in .xml

 
Swathi Prakash
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to do date validation in struts. how to specify that thing in validation. xml.

please help me. thanks in advance
 
Mike Floyd
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
File: "validation.xml"
<formset>
<form>

<field property="Name_of_property_into_form bean" depends="date">
<arg0 key="Name_of_Form.BirthDate" />
<var> <var-name>datePattern</var-name>
<var-value>dd/MM/yyyy</var-value>
</var>
</field>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic