aspose file tools*
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 Spring in Action this week in the Spring 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>
 
Don't get me started about those stupid light bulbs.
 
subject: How to do the Date validation in .xml