I want to split the validation.xml file into multiple files so some pages can be
more easily reused. If I save the new file under /WEB-INF/ and add it to the
ValidatorPlugIn "pathnames" in struts-config.xml everything works fine.

If I move the new file out into the class hierarchy and change the
ValidatorPlugIn entry to point to the new location, it all turns to custard and
I get the following in the logs:
 
Loading validation rules file from
'/nz/ac/otago/corpserv/paper/web/struts/forms/validation/paper-search-validation
.xml' 
Skipping validation rules file from
'/nz/ac/otago/corpserv/paper/web/struts/forms/validation/paper-search-validation
.xml'.  No stream could be opened.
javax.servlet.ServletException: Skipping validation rules file from
'/nz/ac/otago/corpserv/paper/web/struts/forms/validation/paper-search-validation
.xml'.  No stream could be opened.
        at
org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:2
26)
        at
org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:162)

Is it possible to specify a location that isn't under web-inf for the validation
file and if so how is it specified? All the examples I've googled, that have the
file not under web-inf, use the old style "pathname" property to specify the
location.

Thanks,
Kevin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to