• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Some probloms with struts(New version)

David Cox
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am getting some errors with Struts.Maybe simple,

1) I have used the earlier version of struts.jar(which was 487 KB Version 1.1?) to develop a major part of my application.Now i have replaced my struts.jar to newer one(Which is 515 KB(Version 1.2)). But when i load pages in browser,i get this error,

javax.servlet.ServletException: Servlet.init() for servlet action threw exception

root cause

java.lang.NoSuchMethodError: org.apache.commons.validator.ValidatorResources.([Ljava/io/InputStream V
at org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:233)
at org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:164)


2)I am having an ActionForm which uses Struts(commons) validation through validation.xml.When i use client side validation inserting

<html:javascript formName="MyForm"/> It works FINE.

But when i remove client side validation,Serverside is not validating the form.

Anybody know what i am missing?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic