Erik
On Apr 14, 2004, at 6:15 PM, Nathan Maves wrote:
Never mind! found the problem... one of those ID10T errors.
Nathan On Apr 14, 2004, at 3:33 PM, Nathan Maves wrote:
Anyone know why the error message does not show the maxlength argument.
# Purpose can not be greater than characters. # Description can not be greater than characters.
notice it places the first argument (name of the field) but not the max length.
from the validation.xml
<field property="purpose" depends="required, maxlength"> <arg0 key="request.purpose" /> <arg1 name="maxlength" key="${var:maxlength}" /> <var> <var-name>maxlength</var-name> <var-value>2000</var-value> </var> </field>
<form-bean name="requestForm" type="org.apache.struts.validator.DynaValidatorActionForm">
<form-property name="name" type="java.lang.String" />
<form-property name="description" type="java.lang.String" />
<form-property name="purpose" type="java.lang.String" />
<form-property name="format" type="java.lang.String" />
<form-property name="status" type="java.lang.String" />
<form-property name="queueId" type="java.lang.String" />
<form-property name="id" type="java.lang.String" />
</form-bean>
<action path="/Submit" type="reporting.request.presentation.actions.SubmitRequest" name="requestForm" scope="request" validate="true" input=".request.Form">
<forward name="success" redirect="true" path="/Welcome.do" />
<forward name="view" redirect="true" path="/View.do" />
</action>
--------------------------------------------------------------------- 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]
-- Erik Price
<http://erikprice.com/>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]