File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Some probloms with struts(New version) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Some probloms with struts(New version)" Watch "Some probloms with struts(New version)" New topic

Some probloms with struts(New version)

David Cox

Joined: Mar 22, 2005
Posts: 15

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(
at org.apache.struts.validator.ValidatorPlugIn.init(


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?

I agree. Here's the link:
subject: Some probloms with struts(New version)
jQuery in Action, 3rd edition