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 validation error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validation error" Watch "validation error" New topic
Author

validation error

Rajni Patel
Ranch Hand

Joined: Sep 03, 2009
Posts: 84
I have created small struts application. If I plug-in value="/org/apache/struts/validator/validator-rules.xml, then it works fine . but if I plug-in value ="/WEB-INF/validator-rules.xml" then error is coming. I have validation-rules.xml also. Is there any changes I have to do any where? Do i need to write validate() method? I can't understand why is the error is coming. I would appreciate if any body can help me.

Thanks in advance.
Rajni Patel
Ranch Hand

Joined: Sep 03, 2009
Posts: 84
This error is coming

org.apache.commons.validator.ValidatorException: No such validation method: org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, javax.servlet.http.HttpServletRequest)
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Are you using an appropriate version of the validations library?
Rajni Patel
Ranch Hand

Joined: Sep 03, 2009
Posts: 84
I have taken library files and validation-rules.xml files from different place. so is there any problem with that? do you know validation example using validation-rules.xml which I can download from web?

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validation error
 
Similar Threads
struts validation framework
struts validator
DynaAction and validation
Struts Validation
xdoclet and struts and validator