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
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to do the Date validation in .xml
 
Similar Threads
SAX parser and validation
Struts2 Problem in validation
Struts 2 repopulate field when a conversion error happens without using validation.xml
XML validation checks on String
Struts2 2.1.8.1 date validation