Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Struts and the fly likes validator exception in Struts 1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validator exception in Struts 1" Watch "validator exception in Struts 1" New topic

validator exception in Struts 1

shanky raja

Joined: Dec 19, 2011
Posts: 17

i am getting the below exception in a struts application used with validation framework.

18 Dec, 2012 6:06:57 PM org.apache.struts.validator.ValidatorForm validate
SEVERE: No ValidatorAction named required found for field sid
org.apache.commons.validator.ValidatorException: No ValidatorAction named required found for field sid

at org.apache.commons.validator.Field.handleMissingAction(
at org.apache.commons.validator.Field.validate(
at org.apache.commons.validator.Form.validate(
at org.apache.commons.validator.Validator.validate(
at org.apache.struts.validator.ValidatorForm.validate(
at org.apache.struts.chain.commands.servlet.ValidateActionForm.validate(
at org.apache.struts.chain.commands.AbstractValidateActionForm.execute(
at org.apache.struts.chain.commands.ActionCommandBase.execute(
at org.apache.commons.chain.impl.ChainBase.execute(
at org.apache.commons.chain.generic.LookupCommand.execute(
at org.apache.commons.chain.impl.ChainBase.execute(
at org.apache.struts.chain.ComposableRequestProcessor.process(
at org.apache.struts.action.ActionServlet.process(
at org.apache.struts.action.ActionServlet.doPost(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11Processor.process(
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
at Source)
18 Dec, 2012 6:06:57 PM org.apache.struts.chain.commands.servlet.CreateAction createAction
INFO: Initialize action of type:

Different files used in this application are:-





Raaja Gotluru
Ranch Hand

Joined: Mar 02, 2010
Posts: 118

If you have removed or not configured the required rule then that is the reason the compiler is throwing that error. Just copy and place the required rule from the original file available in any of the web example provided by struts.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: validator exception in Struts 1
It's not a secret anymore!