wood burning stoves 2.0*
The moose likes Struts and the fly likes Error while using Validation Framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error while using Validation Framework" Watch "Error while using Validation Framework" New topic
Author

Error while using Validation Framework

Vijay Arora
Greenhorn

Joined: Jun 25, 2007
Posts: 19
Hi,
I m using struts 1.1 and while using validation framework i m getting following error.
Error:
[8/26/09 17:09:47:391 IST] 00000041 ComposableReq I org.apache.struts.chain.ComposableRequestProcessor init Initializing composable request processor for module prefix ''
[8/26/09 17:09:47:469 IST] 00000041 ValidatorForm E org.apache.struts.validator.ValidatorForm validate No such validation method: org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)
org.apache.commons.validator.ValidatorException: No such validation method: org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)



Validaion.xml:


<form-validation>
<formset>
<form name="registerForm">
<field property="uname" depends="required">
</field>
<field property="lname" depends="required">
</field>
<field property="age" depends="intRange">
<arg0 key="registration.lookup.field3"/>
<arg1 key="${var:min}" name="min" resource="false" />
<arg2 key="${var:max}" name="max" resource="false"/>
<var>
<var-name>min</var-name>
<var-value>10</var-value>
</var>
<var>
<var-name>max</var-name>
<var-value>20</var-value>
</var>
</field>
</form>
</formset>
</form-validation>

And Validaion-rules.xml:

<form-validation>

<global>
<validator name="required"
classname="org.apache.struts.validator.FieldChecks"
method="validateRequired"
methodParams="java.lang.Object,
org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionErrors,
javax.servlet.http.HttpServletRequest"
msg="errors.required">
</global>

</form-validation>


vijay arora
 
jQuery in Action, 2nd edition
 
subject: Error while using Validation Framework
 
Similar Threads
LookupDispatch action with validator
Unable to validate minlength
Error using Struts Validator
Having problem with struts validator for error message
Struts Validator