This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validator exception in Struts 1" Watch "validator exception in Struts 1" New topic
Author

validator exception in Struts 1

shanky raja
Greenhorn

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(Field.java:897)
at org.apache.commons.validator.Field.validate(Field.java:873)
at org.apache.commons.validator.Form.validate(Form.java:288)
at org.apache.commons.validator.Validator.validate(Validator.java:351)
at org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:116)
at org.apache.struts.chain.commands.servlet.ValidateActionForm.validate(ValidateActionForm.java:58)
at org.apache.struts.chain.commands.AbstractValidateActionForm.execute(AbstractValidateActionForm.java:120)
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Unknown Source)
18 Dec, 2012 6:06:57 PM org.apache.struts.chain.commands.servlet.CreateAction createAction
INFO: Initialize action of type: com.jlc.struts1.RegisterAction


Different files used in this application are:-

web.xml



struts-config.xml



validator-rules.xml



myform-validations.xml

Raaja Gotluru
Ranch Hand

Joined: Mar 02, 2010
Posts: 115
Hi,

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.
 
Have you checked out Aspose?
 
subject: validator exception in Struts 1
 
It's not a secret anymore!