Hi,
I am trying to use the validation framework in my application. I have a
jsp page with one field to be validated for lenght. when i implement the maxlength validation, it doesn't work. But the "required ' field validation works...
I have tried the changing the struts.jar, validation-rules.xml etc... Still same...
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">
<form-validation>
<formset>
<!-- An example form -->
<form name="MismatchEDIForm">
<field property="isa_date" depends="maxlength">
<arg0 key="mismatchpage.date"/>
<arg1 key="${var:maxlen}" resource="false"/>
<var>
<var-name>maxlen</var-name>
<var-value>6</var-value>
</var>
</field>
</form>
</formset>
</form-validation>