aspose file tools*
The moose likes Struts and the fly likes Struts javascript validator issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts javascript validator issue" Watch "Struts javascript validator issue" New topic
Author

Struts javascript validator issue

Kann Go
Greenhorn

Joined: Jun 04, 2009
Posts: 2
I am using <html:javascript formName=inputWForm> validator. When i access the jsp, it shows "//END-->" on the screen, instead of generating the validator code. It was going fine for long time. Suddenly iam getting this issue and validation not happening. Any suggestion on this. Thanks.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Undo the change that made it start happening?

If your version of Struts didn't change then something you did broke it.
Kann Go
Greenhorn

Joined: Jun 04, 2009
Posts: 2
Thanks David Newton.
I reverted the code and still issue exists. I get the exception - "Digester E org.apache.commons.digester.Digester Parse Fatal Error at line 3 column -1: External entity not found: "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd".
[6/5/09 2:32:27:767 EDT] 18ddc48 Digester E org.apache.commons.digester.Digester TRAS0014I: The following exception was logged java.io.IOException: Error in opening uri http://jakarta.apache.org/commons/dtds/validator_1_0.dtdstatus code=403
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)
at org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2723)
at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1154)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:488)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at org.apache.commons.validator.ValidatorResourcesInitializer.initialize(Unknown Source)
at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:224)
at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:167)
at org.apache.struts.action.ActionServlet.initApplicationPlugIns(ActionServlet.java:991)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:458)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:876)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)"


I even tried putting DTD in classpath. New common validator jar gives compile errors with my existing struts. Any other options there? Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts javascript validator issue