struts的validator框架问题?急

06-03-12 crash
我depends设了required,minlength可运行的时候required执行的,可minlength根本没反映,请指点,谢了

validation.xml代码如下

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN" "validator_1_0.dtd" >

<form-validation>

<formset>

<form name="registerForm">

<field property="userName" depends="required">

<arg0 key="reg.name"/>

</field>

<field property="password" depends="required,minlength">

<arg0 key="reg.password"/>

<arg1 key="req2.password"/>

<var>

<var-name>minlength</var-name>

<var-value>3</var-value>

</var>

</field>

</form>

</formset>

</form-validation>

crash
2006-03-12 15:54
晕,这里贴代码都看不到啊

猜你喜欢