Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts javascript validator issue

 
Kann Go
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic