Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help! No ValidatorAction called required found

Status
Not open for further replies.

jollyplay

Programmer
Dec 16, 2003
90
Hello,

i am using Dynavalidaton form.

In struts-congig.xml

<form-bean name=&quot;AddNewBean&quot; type=&quot;org.apache.struts.validator.DynaValidatorForm&quot;>
<form-property name=&quot;vehicleMake&quot; type=&quot;java.lang.String&quot;/>
</form-bean>

In validation.xml

<form name=&quot;AddNewBean&quot;>
<field property=&quot;vehicleMake&quot; depends=&quot;required&quot;>
<arg0 key=&quot;AddNewVehicleBean.vehicleMake&quot; name=&quot;required&quot;/>
</field>
</form>


But i am getting error like
ERROR [Validator] No ValidatorAction called required found for field vehicleMake.

How can i overcome the problem, thanks in advance.

With regards,
balachandar.
 
The problem is the <arg0>.

<arg0 key=&quot;AddNewVehicleBean.vehicleMake&quot; name=&quot;required&quot;/>

do you have key &quot;AddNewVehicleBean.vehicleMake&quot; defined in your application resource file. It should have the value of your display field name.

Also you don't need attribute &quot;name=required&quot;, I think this is what causing the error.
 
hello byam,

i did, as you told. but still i am getting the same error.
All the dyanavaliator form is not working. But physical form
is working fine. Dynavalidator form was working fine also, suddenly it is not working. Is any problem in struts-config.xml or validation.xml. i think it should be.

thank u.


With regards,
balachandar
 
Could you show me the source of your struts.config and validation.xml
 
Hello byam,

The validation_rulex.xml files is not in the particluar
directroy. So that it created the problem. sorry.
Thank u.

With regards,
balachandar.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top