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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts validation framework" Watch "struts validation framework" New topic

struts validation framework

zohreh talebi
Ranch Hand

Joined: Sep 01, 2006
Posts: 41

when i start using validation framework i encounter with this error .

javax.servlet.UnavailableException : Cannot load a validator resource from '/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml'

INFO: Servlet action is currently unavailable

this error just occures when i use validation frame work .

what should i do ?


Mark Manns

Joined: Jul 06, 2006
Posts: 14
did you enable validation? you have to add this to the struts-config.xml file so struts can find the validation xml files:

<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
I agree. Here's the link:
subject: struts validation framework
It's not a secret anymore!