This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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