File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Some probloms with struts(New version)" Watch "Some probloms with struts(New version)" New topic
Author

Some probloms with struts(New version)

David Cox
Greenhorn

Joined: Mar 22, 2005
Posts: 15
Hi,

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?

Thanks
DC
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Some probloms with struts(New version)