Subject: DynaValidatorForm - can't apply validation rules
From: "Eric" <[EMAIL PROTECTED]>
===
I am using dynimic action form to collection userName and password, here is
the form bean I define in struts-config.xml.
...
<form-bean name="loginForm"
dynamic="true"
type="org.apache.struts.validator.DynaValidatorForm">
<form-property name="userName" type="java.lang.String"/>
<form-property name="password" type="java.lang.String"/>
</form-bean>
...
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
</plug-in>
In validation.xml I have this define in formset
...
<form name="loginForm">
<field property="userName"
depends="required">
<arg0 key="login.label.username"/>
</field>
<field property="password"
depends="required">
<arg0 key="login.label.password"/>
</field>
</form>
...
But the validation rule seems never applied. Did I miss something???
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>