This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes How to do the Date validation in .xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to do the Date validation in .xml" Watch "How to do the Date validation in .xml" New topic
Author

How to do the Date validation in .xml

Swathi Prakash
Ranch Hand

Joined: Jan 18, 2005
Posts: 49
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

Joined: Jan 27, 2005
Posts: 26
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>
 
jQuery in Action, 2nd edition
 
subject: How to do the Date validation in .xml
 
Similar Threads
XML validation checks on String
Struts2 Problem in validation
Struts2 2.1.8.1 date validation
SAX parser and validation
Struts 2 repopulate field when a conversion error happens without using validation.xml