GeeCON Prague 2014*
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


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>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to do the Date validation in .xml