This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts validation framework" Watch "struts validation framework" New topic
Author

struts validation framework

zohreh talebi
Ranch Hand

Joined: Sep 01, 2006
Posts: 41
Dears,

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 ?

thanks

Zohreh
Mark Manns
Greenhorn

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"
value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml"/>
</plug-in>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: struts validation framework
 
Similar Threads
which is best, stuts validator or javascript
Problem in displaying message using resource bundle for validation framework
validator framework
Struts Validation
Struts validation issue: Cannot load a validator resource