How can validate the form fields with action path (using in validation.xml) using validator framework?
[B]Question asked by visitor yogarajan A[/b]
Printable View
How can validate the form fields with action path (using in validation.xml) using validator framework?
[B]Question asked by visitor yogarajan A[/b]
sorry can u explain what kind of fields need to be validated?
Hi,
instead of using form bean name at name attribute use action path.
like
<form-validation>
<form-set>
[B]<form name="action path">[/B]
<field property="username"
depends="required">
<arg key="logonForm.username"/>
</field>
<field property="password"
depends="required,mask">
<arg key="logonForm.password"/>
<var>
<var-name>mask</var-name>
<var-value>^[0-9a-zA-Z]*$</var-value>
</var>
</field>
</form>
</formset>
</form-validation>