Found the error. In the version of "Struts in Action" it has the validators listed as "maxLength" when it should be "maxlength".

Nathan

On Jan 28, 2004, at 1:56 PM, Nathan Maves wrote:

This is a basic validator why would it not be able to find it? I can however use the required validator.


Here is the error :


No ValidatorAction called maxLength found for field name

Here is the code from my validator.xml

<form name="/admin/UpdateDashboard">
<field property="name" depends="required,maxLength">
<arg0 key="app.dashboard.name" />
<arg1 name="maxLength" key="${var:maxLength}" resource="false" />
<var>
<var-name>maxLength</var-name>
<var-value>150</var-value>
</var>
</field>

<field property="description" depends="maxLength">
<var>
<var-name>maxLength</var-name>
<var-value>1000</var-value>
</var>
<arg0 key="app.dashbaord.description" />
<arg1 name="maxLength" key="${var:maxLength}" resource="false" />
</field>
</form>


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to