Hi all,
I'm just getting to know the DynaActionForm and trying to use it on one
form I have, it looks like that it's generationg the JavaScript to
validate the form in the browser, but the server side validation doesn't
work for some reason.
What am I doing wrong ?
Jf
Some config files "cuts":
struts-config.xml
<form-bean name="NewDealerForm"
type="org.apache.struts.action.DynaActionForm"
dynamic="true">
<form-property name="bussinessName" 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>
validation.xml
<formset>
<!-- An example form -->
<form name="NewDealerForm">
<field
property="bussinessName"
depends="required">
<arg0 key="errors.generic"/>
</field>
</form>
</formset>
--
To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>
|