On 8/13/06, Kevin Maeer <[EMAIL PROTECTED]> wrote:
Initially I'm trying to get this to work using Oracle JDeveloper (10.1.2) and its embedded OC4J (which could well be the problem). We're using Struts 1.2.7. The ValidatorPlugIn in struts-config.xml currently looks like: <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathnames" value="/WEB-INF/common/validator-rules.xml, /WEB-INF/validation.xml, /nz/ac/otago/corpserv/paper/web/struts/forms/validation/paper-search-validation. xml" /> <set-property property="stopOnFirstError" value="false"/> </plug-in>
The ability to load validation rules from the classpath was added in r105785 [1] in November 2004. That was prior to the March 2005 announcement for Struts 1.2.7, so this should work. I tried it with the Struts Cookbook app from the svn trunk, and it worked fine in Tomcat 5.5. I moved validation.xml to WEB-INF/classes/org/apache/struts/cookbook/validation.xml and changed struts-config.xml to <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathnames" value="/org/apache/struts/validator/validator-rules.xml, /org/apache/struts/cookbook/validation.xml" /> </plug-in> If you have time, can you try the example apps from 1.3 with your setup? The apps now load validator-rules.xml from struts-core.jar. Probably the easiest thing is to download struts-1.3.5-apps.zip from here, http://people.apache.org/builds/struts/1.3.5/ deploy the struts-cookbook app, and try the validation examples. [1] <http://svn.apache.org/viewvc/struts/core/trunk/src/share/org/apache/struts/validator/ValidatorPlugIn.java?r1=57589&r2=105785&pathrev=105785> Thank you, -- Wendy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]