Re: Struts Validator NoClassDefFoundError
Subject: Re: Struts Validator NoClassDefFoundError From: Pim [EMAIL PROTECTED] === Hi Craig, Check the version of the validator. Use the version 20020114, it's the latest on Davids site. I had similar problems, this was caused because I used version 0.5 Pim Craig Raw [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Hi, I am using the Struts Validator in my webapp but encounter the following error on each page that tries to use it. java.lang.NoClassDefFoundError: org/apache/struts/validator/action/ValidatorForm at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:509) My WEB-INF/lib has the following jars commons-beanutils.jar commons-collections.jar commons-digester.jar jakarta-regexp-1.2.jar struts.jar struts-validator.jar tiles.jar The ValidatorForm is thus clearly in the webapp classpath. I have read this may be because of the ValidatorForm class appearing twice on my system classpath, but this does not seem to be the case. My system classpath on JBoss is: c:\Java\j2sdk1.4.0/lib/tools.jar run.jar ../lib/crimson.jar /C:/var/jboss/log/ /C:/var/jboss/lib/ext/activation.jar /C:/var/jboss/lib/ext/castor-0.9.1.jar /C:/var/jboss/lib/ext/gnu-regexp-1.0.8.jar /C:/var/jboss/lib/ext/hsql.jar /C:/var/jboss/lib/ext/idb.jar /C:/var/jboss/lib/ext/jboss-j2ee.jar /C:/var/jboss/lib/ext/jboss-management.jar /C:/var/jboss/lib/ext/jboss.jar /C:/var/jboss/lib/ext/jbosscx.jar /C:/var/jboss/lib/ext/jbossmq.jar /C:/var/jboss/lib/ext/jbosspool.jar /C:/var/jboss/lib/ext/jbosssx.jar /C:/var/jboss/lib/ext/jetty-service.jar /C:/var/jboss/lib/ext/jmxtools.jar /C:/var/jboss/lib/ext/jndi.jar /C:/var/jboss/lib/ext/jnpserver.jar /C:/var/jboss/lib/ext/jpl-util-0_5b.jar /C:/var/jboss/lib/ext/log4j.jar /C:/var/jboss/lib/ext/mail.jar /C:/var/jboss/lib/ext/mysql.jar /C:/var/jboss/lib/ext/oswego-concurrent.jar /C:/var/jboss/lib/ext/ots-jts_1.0.jar /C:/var/jboss/lib/ext/tomcat-service.jar /C:/var/jboss/lib/ext/tyrex-0.9.8.5.jar /C:/var/jboss/tmp/ /C:/var/jboss/db/ /C:/var/tomcat/lib/ant.jar /C:/var/tomcat/lib/jasper.jar /C:/var/tomcat/lib/servlet.jar /C:/var/tomcat/lib/tools.jar /C:/var/tomcat/lib/webserver.jar The example war that came with the Validator seems to work fine, so it must be a local issue to my deployment. Any ideas? Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts Validator NoClassDefFoundError
Hi, I am using the Struts Validator in my webapp but encounter the following error on each page that tries to use it. java.lang.NoClassDefFoundError: org/apache/struts/validator/action/ValidatorForm at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:509) My WEB-INF/lib has the following jars commons-beanutils.jar commons-collections.jar commons-digester.jar jakarta-regexp-1.2.jar struts.jar struts-validator.jar tiles.jar The ValidatorForm is thus clearly in the webapp classpath. I have read this may be because of the ValidatorForm class appearing twice on my system classpath, but this does not seem to be the case. My system classpath on JBoss is: c:\Java\j2sdk1.4.0/lib/tools.jar run.jar ../lib/crimson.jar /C:/var/jboss/log/ /C:/var/jboss/lib/ext/activation.jar /C:/var/jboss/lib/ext/castor-0.9.1.jar /C:/var/jboss/lib/ext/gnu-regexp-1.0.8.jar /C:/var/jboss/lib/ext/hsql.jar /C:/var/jboss/lib/ext/idb.jar /C:/var/jboss/lib/ext/jboss-j2ee.jar /C:/var/jboss/lib/ext/jboss-management.jar /C:/var/jboss/lib/ext/jboss.jar /C:/var/jboss/lib/ext/jbosscx.jar /C:/var/jboss/lib/ext/jbossmq.jar /C:/var/jboss/lib/ext/jbosspool.jar /C:/var/jboss/lib/ext/jbosssx.jar /C:/var/jboss/lib/ext/jetty-service.jar /C:/var/jboss/lib/ext/jmxtools.jar /C:/var/jboss/lib/ext/jndi.jar /C:/var/jboss/lib/ext/jnpserver.jar /C:/var/jboss/lib/ext/jpl-util-0_5b.jar /C:/var/jboss/lib/ext/log4j.jar /C:/var/jboss/lib/ext/mail.jar /C:/var/jboss/lib/ext/mysql.jar /C:/var/jboss/lib/ext/oswego-concurrent.jar /C:/var/jboss/lib/ext/ots-jts_1.0.jar /C:/var/jboss/lib/ext/tomcat-service.jar /C:/var/jboss/lib/ext/tyrex-0.9.8.5.jar /C:/var/jboss/tmp/ /C:/var/jboss/db/ /C:/var/tomcat/lib/ant.jar /C:/var/tomcat/lib/jasper.jar /C:/var/tomcat/lib/servlet.jar /C:/var/tomcat/lib/tools.jar /C:/var/tomcat/lib/webserver.jar The example war that came with the Validator seems to work fine, so it must be a local issue to my deployment. Any ideas? Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Validator NoClassDefFoundError
What version of the Struts Validator are you using? Package names were changed at some point from com.wintecinc.struts.* to org.apache.struts.validator.* (1/14/2002). When this was done, most of the validator was moved to the Jakarta Commons Validator (http://jakarta.apache.org/commons). I would double check the files/package names in the jar you have. David --- Craig Raw [EMAIL PROTECTED] wrote: Hi, I am using the Struts Validator in my webapp but encounter the following error on each page that tries to use it. java.lang.NoClassDefFoundError: org/apache/struts/validator/action/ValidatorForm at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:509) My WEB-INF/lib has the following jars commons-beanutils.jar commons-collections.jar commons-digester.jar jakarta-regexp-1.2.jar struts.jar struts-validator.jar tiles.jar The ValidatorForm is thus clearly in the webapp classpath. I have read this may be because of the ValidatorForm class appearing twice on my system classpath, but this does not seem to be the case. My system classpath on JBoss is: c:\Java\j2sdk1.4.0/lib/tools.jar run.jar ../lib/crimson.jar /C:/var/jboss/log/ /C:/var/jboss/lib/ext/activation.jar /C:/var/jboss/lib/ext/castor-0.9.1.jar /C:/var/jboss/lib/ext/gnu-regexp-1.0.8.jar /C:/var/jboss/lib/ext/hsql.jar /C:/var/jboss/lib/ext/idb.jar /C:/var/jboss/lib/ext/jboss-j2ee.jar /C:/var/jboss/lib/ext/jboss-management.jar /C:/var/jboss/lib/ext/jboss.jar /C:/var/jboss/lib/ext/jbosscx.jar /C:/var/jboss/lib/ext/jbossmq.jar /C:/var/jboss/lib/ext/jbosspool.jar /C:/var/jboss/lib/ext/jbosssx.jar /C:/var/jboss/lib/ext/jetty-service.jar /C:/var/jboss/lib/ext/jmxtools.jar /C:/var/jboss/lib/ext/jndi.jar /C:/var/jboss/lib/ext/jnpserver.jar /C:/var/jboss/lib/ext/jpl-util-0_5b.jar /C:/var/jboss/lib/ext/log4j.jar /C:/var/jboss/lib/ext/mail.jar /C:/var/jboss/lib/ext/mysql.jar /C:/var/jboss/lib/ext/oswego-concurrent.jar /C:/var/jboss/lib/ext/ots-jts_1.0.jar /C:/var/jboss/lib/ext/tomcat-service.jar /C:/var/jboss/lib/ext/tyrex-0.9.8.5.jar /C:/var/jboss/tmp/ /C:/var/jboss/db/ /C:/var/tomcat/lib/ant.jar /C:/var/tomcat/lib/jasper.jar /C:/var/tomcat/lib/servlet.jar /C:/var/tomcat/lib/tools.jar /C:/var/tomcat/lib/webserver.jar The example war that came with the Validator seems to work fine, so it must be a local issue to my deployment. Any ideas? Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts Validator NoClassDefFoundError
I am using the commons-validator.jar from the Jakarta site. (Sorry, missed this out when typing the contents of my WEB-INF/lib). Since I only used the Validator for the first time after its movement to Commons project, I doubt I have any old com.wintecinc.struts classes around. Craig -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: 07 March 2002 07:41 PM To: Struts Users Mailing List Subject: Re: Struts Validator NoClassDefFoundError What version of the Struts Validator are you using? Package names were changed at some point from com.wintecinc.struts.* to org.apache.struts.validator.* (1/14/2002). When this was done, most of the validator was moved to the Jakarta Commons Validator (http://jakarta.apache.org/commons). I would double check the files/package names in the jar you have. David --- Craig Raw [EMAIL PROTECTED] wrote: Hi, I am using the Struts Validator in my webapp but encounter the following error on each page that tries to use it. java.lang.NoClassDefFoundError: org/apache/struts/validator/action/ValidatorForm at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:509) My WEB-INF/lib has the following jars commons-beanutils.jar commons-collections.jar commons-digester.jar jakarta-regexp-1.2.jar struts.jar struts-validator.jar tiles.jar The ValidatorForm is thus clearly in the webapp classpath. I have read this may be because of the ValidatorForm class appearing twice on my system classpath, but this does not seem to be the case. My system classpath on JBoss is: c:\Java\j2sdk1.4.0/lib/tools.jar run.jar ../lib/crimson.jar /C:/var/jboss/log/ /C:/var/jboss/lib/ext/activation.jar /C:/var/jboss/lib/ext/castor-0.9.1.jar /C:/var/jboss/lib/ext/gnu-regexp-1.0.8.jar /C:/var/jboss/lib/ext/hsql.jar /C:/var/jboss/lib/ext/idb.jar /C:/var/jboss/lib/ext/jboss-j2ee.jar /C:/var/jboss/lib/ext/jboss-management.jar /C:/var/jboss/lib/ext/jboss.jar /C:/var/jboss/lib/ext/jbosscx.jar /C:/var/jboss/lib/ext/jbossmq.jar /C:/var/jboss/lib/ext/jbosspool.jar /C:/var/jboss/lib/ext/jbosssx.jar /C:/var/jboss/lib/ext/jetty-service.jar /C:/var/jboss/lib/ext/jmxtools.jar /C:/var/jboss/lib/ext/jndi.jar /C:/var/jboss/lib/ext/jnpserver.jar /C:/var/jboss/lib/ext/jpl-util-0_5b.jar /C:/var/jboss/lib/ext/log4j.jar /C:/var/jboss/lib/ext/mail.jar /C:/var/jboss/lib/ext/mysql.jar /C:/var/jboss/lib/ext/oswego-concurrent.jar /C:/var/jboss/lib/ext/ots-jts_1.0.jar /C:/var/jboss/lib/ext/tomcat-service.jar /C:/var/jboss/lib/ext/tyrex-0.9.8.5.jar /C:/var/jboss/tmp/ /C:/var/jboss/db/ /C:/var/tomcat/lib/ant.jar /C:/var/tomcat/lib/jasper.jar /C:/var/tomcat/lib/servlet.jar /C:/var/tomcat/lib/tools.jar /C:/var/tomcat/lib/webserver.jar The example war that came with the Validator seems to work fine, so it must be a local issue to my deployment. Any ideas? Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts Validator - mulitple forms on one page
Hi, Would like to know if I can validate using js with multiple forms in one file. Currently I'm having a problem. When I use validator:javascript formName=myForm1 / and validator:javascript formName=myForm2 / only the last one specified works. The other form gives me a javascript error. Is there anyway around this? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts Validator Questions
Hi, I started using the struts validator package about a week ago and have the following questions: 1 - How do I get the validator to validate a required field for a selection box? My selection is on an integer property. I noticed in the validator-rules.xml file it is checking for type select-one. What type is a html:select? I tried replacing select-one with select but it still doesn't find it. 2 - Cannot get the two password comparison example working. I put in the code specified under ~dwinterfeldt. Was wondering if anyone has gotten this working. The only difference I can see in my code and the example was that I am using StrutsValidatorUtil.getActionError instead of ValidatorUtil.getActionError (the latter the compiler complained about no such method signature). Was wondering if there was a javascript method also that could be included. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Validator Questions
--- Ben Kafka [EMAIL PROTECTED] wrote: Hi, I started using the struts validator package about a week ago and have the following questions: 1 - How do I get the validator to validate a required field for a selection box? My selection is on an integer property. I noticed in the validator-rules.xml file it is checking for type select-one. What type is a html:select? I tried replacing select-one with select but it still doesn't find it. The select-one is the correct type in Javascript for an html:select tag. I'm not sure what is in your select list, but if it is an integer how can you check that it is blank (zero length string) or null? You could use the range method to see if it falls in a range or write your own. 2 - Cannot get the two password comparison example working. I put in the code specified under ~dwinterfeldt. Was wondering if anyone has gotten this working. The only difference I can see in my code and the example was that I am using StrutsValidatorUtil.getActionError instead of ValidatorUtil.getActionError (the latter the compiler complained about no such method signature). Was wondering if there was a javascript method also that could be included. No error messages? Everything works on the same principle. Does the validator definition in the xml have the same method and class defined as where the validation method actually is (no types)? You can make a Javascript method to match if you want to. You can follow one of the examples to see how to make a generic Javascript method. You have access to the error message and the variables you've defined in the Javascript. David -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts Validator Questions
Hi, Was able to fix the first problem by going into the js and checking for select-one and value=0. Regarding the 2nd issue, I have specified the class where I put the method in the valiation-xml e.g. my clasname=com.mypackagename.ui.RegistrationForm and I have a method there called validateTwoFields(Object bean,ValidatorAction va,... just like yours. The only difference is that in errors.add() I have errors.add(field.getKey,StrutsValidatorUtil.getActionError(.) and you have errors.add(field.getKey.ValidatorUtil.getActionError(. I am compiling and running okay, but it never gets to this routine. (Thanks for your help by the way) Ben -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 11:57 AM To: Struts Users Mailing List Subject: Re: Struts Validator Questions --- Ben Kafka [EMAIL PROTECTED] wrote: Hi, I started using the struts validator package about a week ago and have the following questions: 1 - How do I get the validator to validate a required field for a selection box? My selection is on an integer property. I noticed in the validator-rules.xml file it is checking for type select-one. What type is a html:select? I tried replacing select-one with select but it still doesn't find it. The select-one is the correct type in Javascript for an html:select tag. I'm not sure what is in your select list, but if it is an integer how can you check that it is blank (zero length string) or null? You could use the range method to see if it falls in a range or write your own. 2 - Cannot get the two password comparison example working. I put in the code specified under ~dwinterfeldt. Was wondering if anyone has gotten this working. The only difference I can see in my code and the example was that I am using StrutsValidatorUtil.getActionError instead of ValidatorUtil.getActionError (the latter the compiler complained about no such method signature). Was wondering if there was a javascript method also that could be included. No error messages? Everything works on the same principle. Does the validator definition in the xml have the same method and class defined as where the validation method actually is (no types)? You can make a Javascript method to match if you want to. You can follow one of the examples to see how to make a generic Javascript method. You have access to the error message and the variables you've defined in the Javascript. David -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts Validator Questions
Could I see your xml for the validator definition? Do you have the depends in the xml validator set to something so it is never getting to this validation? If you put debug code in the method, you never see it run either? David --- Ben Kafka [EMAIL PROTECTED] wrote: Hi, Was able to fix the first problem by going into the js and checking for select-one and value=0. Regarding the 2nd issue, I have specified the class where I put the method in the valiation-xml e.g. my clasname=com.mypackagename.ui.RegistrationForm and I have a method there called validateTwoFields(Object bean,ValidatorAction va,... just like yours. The only difference is that in errors.add() I have errors.add(field.getKey,StrutsValidatorUtil.getActionError(.) and you have errors.add(field.getKey.ValidatorUtil.getActionError(. I am compiling and running okay, but it never gets to this routine. (Thanks for your help by the way) Ben -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 11:57 AM To: Struts Users Mailing List Subject: Re: Struts Validator Questions --- Ben Kafka [EMAIL PROTECTED] wrote: Hi, I started using the struts validator package about a week ago and have the following questions: 1 - How do I get the validator to validate a required field for a selection box? My selection is on an integer property. I noticed in the validator-rules.xml file it is checking for type select-one. What type is a html:select? I tried replacing select-one with select but it still doesn't find it. The select-one is the correct type in Javascript for an html:select tag. I'm not sure what is in your select list, but if it is an integer how can you check that it is blank (zero length string) or null? You could use the range method to see if it falls in a range or write your own. 2 - Cannot get the two password comparison example working. I put in the code specified under ~dwinterfeldt. Was wondering if anyone has gotten this working. The only difference I can see in my code and the example was that I am using StrutsValidatorUtil.getActionError instead of ValidatorUtil.getActionError (the latter the compiler complained about no such method signature). Was wondering if there was a javascript method also that could be included. No error messages? Everything works on the same principle. Does the validator definition in the xml have the same method and class defined as where the validation method actually is (no types)? You can make a Javascript method to match if you want to. You can follow one of the examples to see how to make a generic Javascript method. You have access to the error message and the variables you've defined in the Javascript. David -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Greetings - Send FREE e-cards for every occasion! http://greetings.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Validator help
It is keyed on the property, not the message resource key. So it would be the same as the property for you html:text tag. html:errors property=email / This would represent getEmail/setEmail. David --- [EMAIL PROTECTED] wrote: Hi, I'm new to Struts and Struts Validator. I have been able to setup struts and the validator package to work properly on my machine. I'm having trouble however with getting and displaying the error message properly. I can display them at the top of the page using html:errors/ tag but I would like to be able to place the errors individually at different places in the page. I tried html:errors property=registrationForm.email.displayname / but this doesn't seem to be working. The line in the resource file is: registrationForm.email.displayname=E-mail. I think the key is not in the collection of errors. Is there a way to see what keys are available in that collection. I do not have specific error.propname=... entry in the resource file. Is that needed? Thank you. Bill -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts Validator Load Failure
Ted, I finally have this working. Turns out that the Tomcat version that Borland packages with JBuilder 6 Enterprise is buggy. I downloaded the 4.0.1 version, and tried the 1.1a version that you pointed to along with Torque, and everything works just fine! Are there differences between 1.1a and 1.1 that I should be aware of? Thanks again for all of your help. -robert. -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 11:03 AM To: Struts Users Mailing List Subject: Re: Struts Validator Load Failure Try it with this one instead (binaries only), http://husted.com/struts/resources/struts_1_1a.zip and let us know if it works as well as it did Struts 1.0.x Hey, and any notes on using Torque with Struts would be welcome =:o) -Ted. Robert D. Morse wrote: Hello Ted. I just tried the nightly 31-Jan-2002 version of struts. Torque is from 01-06-2002. -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 6:07 AM To: Struts Users Mailing List Subject: Re: Struts Validator Load Failure By any version of Struts, do include version 1.0.1 or a nightly build prior to 15-Jan ? -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Robert D. Morse wrote: Has anyone discovered a fix for this? I see this with the 01-06-2002 nightly of Torque and any version of Struts other than 1.0. Struts 1.0 works perfectly. I haven't had the time to track this down personally, so I'm wondering if anyone discovered a solution. Thanks. -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Sunday, January 06, 2002 12:10 PM To: [EMAIL PROTECTED] Subject: Struts Validator Load Failure Subject: Struts Validator Load Failure From: Paul Heath [EMAIL PROTECTED] === The following is a partial stack trace of when the app server tries to load Struts Validator. I have the latest version of Digester (v1.1.1) and Struts Validator in my classpath. Anyone know how to fix this: java.lang.NoSuchMethodError at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:237) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:123) at com.wintecinc.struts.action.ValidatorServlet.initMapping(ValidatorServlet.ja va:223) at com.wintecinc.struts.action.ValidatorServlet.init(ValidatorServlet.java:123) at javax.servlet.GenericServlet.init(GenericServlet.java:258) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Validator Load Failure
Hi, I have had the same error : Digester.getParser: javax.xml.parsers.ParserConfigurationException: Namespace not supported by SAXParser (...) The digester (org.apache.commons.digester) namespace setup seems not supported by all versions of xml parsers. I had the same problem with both digester package version 1.0 and 1.1.1 A solution : Since tomcat 3.3a (Final ) and above this problem do not arise, due to the included xml parser version I guess. I tried to upgrade the tomcat 3.2.2 parser, the digester errors seemed resolved but it broke tomcat somewhere else ... I stoped spending time there and choose the easy way: upgrading the servlet - JSP container. I think it must be possible to work with Tomcat 4 in the JBuilder environement since JBuilder 5.0 but I haven't tested it yet. Regards, Patrick Robert D. Morse wrote: Thanks Ted, but I get a different error under JBuilder 6.0: Digester.getParser: javax.xml.parsers.ParserConfigurationException: Namespace not supported by SAXParser at com.sun.xml.parser.SAXParserImpl.init(SAXParserImpl.java:60) at com.sun.xml.parser.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.ja va:57) at org.apache.commons.digester.Digester.getParser(Digester.java:523) at org.apache.commons.digester.Digester.getReader(Digester.java:542) at org.apache.commons.digester.Digester.parse(Digester.java:1234) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1762) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:496) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup Interceptor.java:130) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491) at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)java.lang .NoSuchMethodError at org.apache.commons.digester.Digester.getReader(Digester.java:542) at org.apache.commons.digester.Digester.parse(Digester.java:1234) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1762) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:496) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup Interceptor.java:130) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491) at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Exception in thread main -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 11:03 AM To: Struts Users Mailing List Subject: Re: Struts Validator Load Failure Try it with this one instead (binaries only), http://husted.com/struts/resources/struts_1_1a.zip and let us know if it works as well as it did Struts 1.0.x Hey, and any notes on using Torque with Struts would be welcome =:o) -Ted. Robert D. Morse wrote: Hello Ted. I just tried the nightly 31-Jan-2002 version of struts. Torque is from 01-06-2002. -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 6:07 AM To: Struts Users Mailing List Subject: Re: Struts Validator Load Failure By any version of Struts, do include version 1.0.1 or a nightly build prior to 15-Jan ? -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Robert D. Morse wrote: Has anyone discovered a fix for this? I see this with the 01-06-2002 nightly of Torque and any version of Struts other than 1.0. Struts 1.0 works perfectly. I haven't had the time to track this down personally, so I'm wondering if anyone discovered a solution. Thanks. -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Sunday, January 06, 2002 12:10 PM To: [EMAIL PROTECTED] Subject: Struts Validator Load Failure Subject: Struts Validator Load Failure From: Paul Heath [EMAIL PROTECTED] === The following is a partial stack trace of when the app server tries to load Struts Validator. I have the latest version of Digester (v1.1.1
RE: Struts Validator Load Failure
Has anyone discovered a fix for this? I see this with the 01-06-2002 nightly of Torque and any version of Struts other than 1.0. Struts 1.0 works perfectly. I haven't had the time to track this down personally, so I'm wondering if anyone discovered a solution. Thanks. -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Sunday, January 06, 2002 12:10 PM To: [EMAIL PROTECTED] Subject: Struts Validator Load Failure Subject: Struts Validator Load Failure From: Paul Heath [EMAIL PROTECTED] === The following is a partial stack trace of when the app server tries to load Struts Validator. I have the latest version of Digester (v1.1.1) and Struts Validator in my classpath. Anyone know how to fix this: java.lang.NoSuchMethodError at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:237) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:123) at com.wintecinc.struts.action.ValidatorServlet.initMapping(ValidatorServlet.ja va:223) at com.wintecinc.struts.action.ValidatorServlet.init(ValidatorServlet.java:123) at javax.servlet.GenericServlet.init(GenericServlet.java:258) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Validator Load Failure
By any version of Struts, do include version 1.0.1 or a nightly build prior to 15-Jan ? -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Robert D. Morse wrote: Has anyone discovered a fix for this? I see this with the 01-06-2002 nightly of Torque and any version of Struts other than 1.0. Struts 1.0 works perfectly. I haven't had the time to track this down personally, so I'm wondering if anyone discovered a solution. Thanks. -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Sunday, January 06, 2002 12:10 PM To: [EMAIL PROTECTED] Subject: Struts Validator Load Failure Subject: Struts Validator Load Failure From: Paul Heath [EMAIL PROTECTED] === The following is a partial stack trace of when the app server tries to load Struts Validator. I have the latest version of Digester (v1.1.1) and Struts Validator in my classpath. Anyone know how to fix this: java.lang.NoSuchMethodError at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:237) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:123) at com.wintecinc.struts.action.ValidatorServlet.initMapping(ValidatorServlet.ja va:223) at com.wintecinc.struts.action.ValidatorServlet.init(ValidatorServlet.java:123) at javax.servlet.GenericServlet.init(GenericServlet.java:258) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts Validator Load Failure
Hello Ted. I just tried the nightly 31-Jan-2002 version of struts. Torque is from 01-06-2002. -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 6:07 AM To: Struts Users Mailing List Subject: Re: Struts Validator Load Failure By any version of Struts, do include version 1.0.1 or a nightly build prior to 15-Jan ? -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Robert D. Morse wrote: Has anyone discovered a fix for this? I see this with the 01-06-2002 nightly of Torque and any version of Struts other than 1.0. Struts 1.0 works perfectly. I haven't had the time to track this down personally, so I'm wondering if anyone discovered a solution. Thanks. -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Sunday, January 06, 2002 12:10 PM To: [EMAIL PROTECTED] Subject: Struts Validator Load Failure Subject: Struts Validator Load Failure From: Paul Heath [EMAIL PROTECTED] === The following is a partial stack trace of when the app server tries to load Struts Validator. I have the latest version of Digester (v1.1.1) and Struts Validator in my classpath. Anyone know how to fix this: java.lang.NoSuchMethodError at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:237) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:123) at com.wintecinc.struts.action.ValidatorServlet.initMapping(ValidatorServlet.ja va:223) at com.wintecinc.struts.action.ValidatorServlet.init(ValidatorServlet.java:123) at javax.servlet.GenericServlet.init(GenericServlet.java:258) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Validator Load Failure
Try it with this one instead (binaries only), http://husted.com/struts/resources/struts_1_1a.zip and let us know if it works as well as it did Struts 1.0.x Hey, and any notes on using Torque with Struts would be welcome =:o) -Ted. Robert D. Morse wrote: Hello Ted. I just tried the nightly 31-Jan-2002 version of struts. Torque is from 01-06-2002. -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 6:07 AM To: Struts Users Mailing List Subject: Re: Struts Validator Load Failure By any version of Struts, do include version 1.0.1 or a nightly build prior to 15-Jan ? -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Robert D. Morse wrote: Has anyone discovered a fix for this? I see this with the 01-06-2002 nightly of Torque and any version of Struts other than 1.0. Struts 1.0 works perfectly. I haven't had the time to track this down personally, so I'm wondering if anyone discovered a solution. Thanks. -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Sunday, January 06, 2002 12:10 PM To: [EMAIL PROTECTED] Subject: Struts Validator Load Failure Subject: Struts Validator Load Failure From: Paul Heath [EMAIL PROTECTED] === The following is a partial stack trace of when the app server tries to load Struts Validator. I have the latest version of Digester (v1.1.1) and Struts Validator in my classpath. Anyone know how to fix this: java.lang.NoSuchMethodError at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:237) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:123) at com.wintecinc.struts.action.ValidatorServlet.initMapping(ValidatorServlet.ja va:223) at com.wintecinc.struts.action.ValidatorServlet.init(ValidatorServlet.java:123) at javax.servlet.GenericServlet.init(GenericServlet.java:258) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts Validator Load Failure
Actually that really looks like the error you get when you've got an old version of xerces.jar. I know the Digester needs a fairly recent version of Xerces. Maybe you can check that as well. -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 11:03 AM To: Struts Users Mailing List Subject: Re: Struts Validator Load Failure Try it with this one instead (binaries only), http://husted.com/struts/resources/struts_1_1a.zip and let us know if it works as well as it did Struts 1.0.x Hey, and any notes on using Torque with Struts would be welcome =:o) -Ted. Robert D. Morse wrote: Hello Ted. I just tried the nightly 31-Jan-2002 version of struts. Torque is from 01-06-2002. -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 6:07 AM To: Struts Users Mailing List Subject: Re: Struts Validator Load Failure By any version of Struts, do include version 1.0.1 or a nightly build prior to 15-Jan ? -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Robert D. Morse wrote: Has anyone discovered a fix for this? I see this with the 01-06-2002 nightly of Torque and any version of Struts other than 1.0. Struts 1.0 works perfectly. I haven't had the time to track this down personally, so I'm wondering if anyone discovered a solution. Thanks. -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Sunday, January 06, 2002 12:10 PM To: [EMAIL PROTECTED] Subject: Struts Validator Load Failure Subject: Struts Validator Load Failure From: Paul Heath [EMAIL PROTECTED] === The following is a partial stack trace of when the app server tries to load Struts Validator. I have the latest version of Digester (v1.1.1) and Struts Validator in my classpath. Anyone know how to fix this: java.lang.NoSuchMethodError at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:237) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:123) at com.wintecinc.struts.action.ValidatorServlet.initMapping(ValidatorServlet.ja va:223) at com.wintecinc.struts.action.ValidatorServlet.init(ValidatorServlet.java:123) at javax.servlet.GenericServlet.init(GenericServlet.java:258) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts Validator Load Failure
Thanks Ted, but I get a different error under JBuilder 6.0: Digester.getParser: javax.xml.parsers.ParserConfigurationException: Namespace not supported by SAXParser at com.sun.xml.parser.SAXParserImpl.init(SAXParserImpl.java:60) at com.sun.xml.parser.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.ja va:57) at org.apache.commons.digester.Digester.getParser(Digester.java:523) at org.apache.commons.digester.Digester.getReader(Digester.java:542) at org.apache.commons.digester.Digester.parse(Digester.java:1234) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1762) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:496) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup Interceptor.java:130) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491) at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)java.lang .NoSuchMethodError at org.apache.commons.digester.Digester.getReader(Digester.java:542) at org.apache.commons.digester.Digester.parse(Digester.java:1234) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1762) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:496) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup Interceptor.java:130) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491) at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Exception in thread main -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 11:03 AM To: Struts Users Mailing List Subject: Re: Struts Validator Load Failure Try it with this one instead (binaries only), http://husted.com/struts/resources/struts_1_1a.zip and let us know if it works as well as it did Struts 1.0.x Hey, and any notes on using Torque with Struts would be welcome =:o) -Ted. Robert D. Morse wrote: Hello Ted. I just tried the nightly 31-Jan-2002 version of struts. Torque is from 01-06-2002. -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 02, 2002 6:07 AM To: Struts Users Mailing List Subject: Re: Struts Validator Load Failure By any version of Struts, do include version 1.0.1 or a nightly build prior to 15-Jan ? -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Robert D. Morse wrote: Has anyone discovered a fix for this? I see this with the 01-06-2002 nightly of Torque and any version of Struts other than 1.0. Struts 1.0 works perfectly. I haven't had the time to track this down personally, so I'm wondering if anyone discovered a solution. Thanks. -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Sunday, January 06, 2002 12:10 PM To: [EMAIL PROTECTED] Subject: Struts Validator Load Failure Subject: Struts Validator Load Failure From: Paul Heath [EMAIL PROTECTED] === The following is a partial stack trace of when the app server tries to load Struts Validator. I have the latest version of Digester (v1.1.1) and Struts Validator in my classpath. Anyone know how to fix this: java.lang.NoSuchMethodError at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:237) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:123) at com.wintecinc.struts.action.ValidatorServlet.initMapping(ValidatorServlet.ja va:223) at com.wintecinc.struts.action.ValidatorServlet.init(ValidatorServlet.java:123) at javax.servlet.GenericServlet.init(GenericServlet.java:258) -- To unsubscribe
RE: Struts-Validator ActionForm error
Thanks David I've fixed it now. I have ensured that the struts and struts-validator jars are only on the webapp's classpath as per your webpage. I have excluded them from my environment, but ensured they are on the compiler's classpath by adding them into the ant build.xml Cheers Patrick -Original Message- From: David Winterfeldt [SMTP:[EMAIL PROTECTED]] Sent: 10 January 2002 08:03 To: Struts Users Mailing List Subject: RE: Struts-Validator ActionForm error The Validator jar is in the WEB-INF/lib with the Struts jar? And neither is in the classpath? David --- Patrick Liardet [EMAIL PROTECTED] wrote: Thanks Michelle Unfortunately this doesn't seem to be the problem (although I'm told the classpath issue you mention can be a source of problems for new struts users). Struts framework builds and runs fine. I have the struts-jar on my webapps's classpath as stated below. It's not on my container classpath, otherwise I'd be getting other problems unrelated to the wintecinc validator problem. I am using the latest October release of Validator against the 1.0 Struts release. I'll try the July 2 build instead. It says here http://home.earthlink.net/~dwinterfeldt/ that this could be the correct version. Thanks Patrick -Original Message- From: Michelle Popovits [SMTP:[EMAIL PROTECTED]] Sent: 08 January 2002 20:47 To: 'Struts Users Mailing List' Subject: RE: Struts-Validator ActionForm error remove struts-jar from classpath and add to web-inf/lib directory. Check to make sure the jar is no where in the web/app server class path. -Original Message- From: Patrick Liardet [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 3:32 PM To: Struts Users Mailing List Subject: Struts-Validator ActionForm error Hi All I'm using the com.wintecinc.struts validator library. When I subclass my formbean from an ActionForm, it runs Ok, but doesn't validate. When I subclass my formbean from a com.wintecinc.struts.action.ValidatorForm as suggested, I receive the following runtime error: java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm This seems odd. I certainly have the struts.jar in my webapp's classpath as standard struts functionality is available. Any ideas ? Patrick == = The information in this E-mail (which includes any files transmitted with it), is confidential and may also be legally privileged. It is intended for the addressee only. Access to this E-mail by anyone else is unauthorised. If you have received it in error, please destroy any copies and delete it from your system notifying the sender immediately. Any use, dissemination, forwarding, printing or copying of this E-mail is prohibited. E-mail communications are not secure and therefore Rolfe Nolan does not accept legal responsibility for the contents of this message. Any views or opinions presented are solely those of the author and do not necessarily represent those of Rolfe Nolan. == = -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] == = The information in this E-mail (which includes any files transmitted with it), is confidential and may also be legally privileged. It is intended for the addressee only. Access to this E-mail by anyone else is unauthorised. If you have received it in error, please destroy any copies and delete it from your system notifying the sender immediately. Any use, dissemination, forwarding, printing or copying of this E-mail is prohibited. E-mail communications are not secure and therefore Rolfe Nolan does not accept legal responsibility for the contents of this message. Any views or opinions presented are solely those of the author and do not necessarily represent those of Rolfe Nolan. == = -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL
RE: Struts-Validator ActionForm error
Thanks Michelle Unfortunately this doesn't seem to be the problem (although I'm told the classpath issue you mention can be a source of problems for new struts users). Struts framework builds and runs fine. I have the struts-jar on my webapps's classpath as stated below. It's not on my container classpath, otherwise I'd be getting other problems unrelated to the wintecinc validator problem. I am using the latest October release of Validator against the 1.0 Struts release. I'll try the July 2 build instead. It says here http://home.earthlink.net/~dwinterfeldt/ that this could be the correct version. Thanks Patrick -Original Message- From: Michelle Popovits [SMTP:[EMAIL PROTECTED]] Sent: 08 January 2002 20:47 To: 'Struts Users Mailing List' Subject: RE: Struts-Validator ActionForm error remove struts-jar from classpath and add to web-inf/lib directory. Check to make sure the jar is no where in the web/app server class path. -Original Message- From: Patrick Liardet [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 3:32 PM To: Struts Users Mailing List Subject: Struts-Validator ActionForm error Hi All I'm using the com.wintecinc.struts validator library. When I subclass my formbean from an ActionForm, it runs Ok, but doesn't validate. When I subclass my formbean from a com.wintecinc.struts.action.ValidatorForm as suggested, I receive the following runtime error: java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm This seems odd. I certainly have the struts.jar in my webapp's classpath as standard struts functionality is available. Any ideas ? Patrick == = The information in this E-mail (which includes any files transmitted with it), is confidential and may also be legally privileged. It is intended for the addressee only. Access to this E-mail by anyone else is unauthorised. If you have received it in error, please destroy any copies and delete it from your system notifying the sender immediately. Any use, dissemination, forwarding, printing or copying of this E-mail is prohibited. E-mail communications are not secure and therefore Rolfe Nolan does not accept legal responsibility for the contents of this message. Any views or opinions presented are solely those of the author and do not necessarily represent those of Rolfe Nolan. == = -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] === The information in this E-mail (which includes any files transmitted with it), is confidential and may also be legally privileged. It is intended for the addressee only. Access to this E-mail by anyone else is unauthorised. If you have received it in error, please destroy any copies and delete it from your system notifying the sender immediately. Any use, dissemination, forwarding, printing or copying of this E-mail is prohibited. E-mail communications are not secure and therefore Rolfe Nolan does not accept legal responsibility for the contents of this message. Any views or opinions presented are solely those of the author and do not necessarily represent those of Rolfe Nolan. === -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts-Validator ActionForm error
Hi All I'm using the com.wintecinc.struts validator library. When I subclass my formbean from an ActionForm, it runs Ok, but doesn't validate. When I subclass my formbean from a com.wintecinc.struts.action.ValidatorForm as suggested, I receive the following runtime error: java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm This seems odd. I certainly have the struts.jar in my webapp's classpath as standard struts functionality is available. Any ideas ? Patrick === The information in this E-mail (which includes any files transmitted with it), is confidential and may also be legally privileged. It is intended for the addressee only. Access to this E-mail by anyone else is unauthorised. If you have received it in error, please destroy any copies and delete it from your system notifying the sender immediately. Any use, dissemination, forwarding, printing or copying of this E-mail is prohibited. E-mail communications are not secure and therefore Rolfe Nolan does not accept legal responsibility for the contents of this message. Any views or opinions presented are solely those of the author and do not necessarily represent those of Rolfe Nolan. === -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts-Validator ActionForm error
remove struts-jar from classpath and add to web-inf/lib directory. Check to make sure the jar is no where in the web/app server class path. -Original Message- From: Patrick Liardet [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 3:32 PM To: Struts Users Mailing List Subject: Struts-Validator ActionForm error Hi All I'm using the com.wintecinc.struts validator library. When I subclass my formbean from an ActionForm, it runs Ok, but doesn't validate. When I subclass my formbean from a com.wintecinc.struts.action.ValidatorForm as suggested, I receive the following runtime error: java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm This seems odd. I certainly have the struts.jar in my webapp's classpath as standard struts functionality is available. Any ideas ? Patrick === The information in this E-mail (which includes any files transmitted with it), is confidential and may also be legally privileged. It is intended for the addressee only. Access to this E-mail by anyone else is unauthorised. If you have received it in error, please destroy any copies and delete it from your system notifying the sender immediately. Any use, dissemination, forwarding, printing or copying of this E-mail is prohibited. E-mail communications are not secure and therefore Rolfe Nolan does not accept legal responsibility for the contents of this message. Any views or opinions presented are solely those of the author and do not necessarily represent those of Rolfe Nolan. === -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts Validator Load Failure
Same problem as described using: RH Linux 7.2 07-jan Struts and Torque 06-Jan Tomcat 4 If someone comes up with a working combination, I'd be interested in hearing it. In the meantime back to Struts 1.0. -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Sunday, January 06, 2002 7:25 PM To: [EMAIL PROTECTED] Subject: Re: Struts Validator Load Failure Subject: Re: Struts Validator Load Failure From: Paul Heath [EMAIL PROTECTED] === The same validation.xml works in the Tomcat environment with the same commons, struts, tiles validator jars. Do I need to be including jaxp or xerces in my classpath as well ? FYI - My app server is SilverStream 3.7.3 Steven D. Wilkinson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I haven't used the validator, but that is a Digester error. I would guess that something is wrong in the validation.xml file. Struts Newsgroup @Basebeans.com wrote: Subject: Struts Validator Load Failure From: Paul Heath [EMAIL PROTECTED] === The following is a partial stack trace of when the app server tries to load Struts Validator. I have the latest version of Digester (v1.1.1) and Struts Validator in my classpath. Anyone know how to fix this: java.lang.NoSuchMethodError at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:237) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:123) at com.wintecinc.struts.action.ValidatorServlet.initMapping(ValidatorServlet.ja va:223) at com.wintecinc.struts.action.ValidatorServlet.init(ValidatorServlet.java:123) at javax.servlet.GenericServlet.init(GenericServlet.java:258) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts Validator Load Failure
You might check that the commons jar files are in the same directory as struts.jar. I assume WEB-INF/lib. David Morris [EMAIL PROTECTED] 01/07/02 05:34PM Same problem as described using: RH Linux 7.2 07-jan Struts and Torque 06-Jan Tomcat 4 If someone comes up with a working combination, I'd be interested in hearing it. In the meantime back to Struts 1.0. -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Sunday, January 06, 2002 7:25 PM To: [EMAIL PROTECTED] Subject: Re: Struts Validator Load Failure Subject: Re: Struts Validator Load Failure From: Paul Heath [EMAIL PROTECTED] === The same validation.xml works in the Tomcat environment with the same commons, struts, tiles validator jars. Do I need to be including jaxp or xerces in my classpath as well ? FYI - My app server is SilverStream 3.7.3 Steven D. Wilkinson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I haven't used the validator, but that is a Digester error. I would guess that something is wrong in the validation.xml file. Struts Newsgroup @Basebeans.com wrote: Subject: Struts Validator Load Failure From: Paul Heath [EMAIL PROTECTED] === The following is a partial stack trace of when the app server tries to load Struts Validator. I have the latest version of Digester (v1.1.1) and Struts Validator in my classpath. Anyone know how to fix this: java.lang.NoSuchMethodError at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:237) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:123) at com.wintecinc.struts.action.ValidatorServlet.initMapping(ValidatorServlet.ja va:223) at com.wintecinc.struts.action.ValidatorServlet.init(ValidatorServlet.java:123) at javax.servlet.GenericServlet.init(GenericServlet.java:258) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts Validator Load Failure
Yes, they are there. Same problem. -Original Message- From: David Morris [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 4:46 PM To: [EMAIL PROTECTED] Subject: RE: Struts Validator Load Failure You might check that the commons jar files are in the same directory as struts.jar. I assume WEB-INF/lib. David Morris [EMAIL PROTECTED] 01/07/02 05:34PM Same problem as described using: RH Linux 7.2 07-jan Struts and Torque 06-Jan Tomcat 4 If someone comes up with a working combination, I'd be interested in hearing it. In the meantime back to Struts 1.0. -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Sunday, January 06, 2002 7:25 PM To: [EMAIL PROTECTED] Subject: Re: Struts Validator Load Failure Subject: Re: Struts Validator Load Failure From: Paul Heath [EMAIL PROTECTED] === The same validation.xml works in the Tomcat environment with the same commons, struts, tiles validator jars. Do I need to be including jaxp or xerces in my classpath as well ? FYI - My app server is SilverStream 3.7.3 Steven D. Wilkinson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I haven't used the validator, but that is a Digester error. I would guess that something is wrong in the validation.xml file. Struts Newsgroup @Basebeans.com wrote: Subject: Struts Validator Load Failure From: Paul Heath [EMAIL PROTECTED] === The following is a partial stack trace of when the app server tries to load Struts Validator. I have the latest version of Digester (v1.1.1) and Struts Validator in my classpath. Anyone know how to fix this: java.lang.NoSuchMethodError at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:237) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:123) at com.wintecinc.struts.action.ValidatorServlet.initMapping(ValidatorServlet.ja va:223) at com.wintecinc.struts.action.ValidatorServlet.init(ValidatorServlet.java:123) at javax.servlet.GenericServlet.init(GenericServlet.java:258) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts Validator Load Failure
Subject: Struts Validator Load Failure From: Paul Heath [EMAIL PROTECTED] === The following is a partial stack trace of when the app server tries to load Struts Validator. I have the latest version of Digester (v1.1.1) and Struts Validator in my classpath. Anyone know how to fix this: java.lang.NoSuchMethodError at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:237) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:123) at com.wintecinc.struts.action.ValidatorServlet.initMapping(ValidatorServlet.ja va:223) at com.wintecinc.struts.action.ValidatorServlet.init(ValidatorServlet.java:123) at javax.servlet.GenericServlet.init(GenericServlet.java:258) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Validator Load Failure
I haven't used the validator, but that is a Digester error. I would guess that something is wrong in the validation.xml file. Struts Newsgroup @Basebeans.com wrote: Subject: Struts Validator Load Failure From: Paul Heath [EMAIL PROTECTED] === The following is a partial stack trace of when the app server tries to load Struts Validator. I have the latest version of Digester (v1.1.1) and Struts Validator in my classpath. Anyone know how to fix this: java.lang.NoSuchMethodError at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:237) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:123) at com.wintecinc.struts.action.ValidatorServlet.initMapping(ValidatorServlet.ja va:223) at com.wintecinc.struts.action.ValidatorServlet.init(ValidatorServlet.java:123) at javax.servlet.GenericServlet.init(GenericServlet.java:258) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts Validator Load Failure
Subject: Re: Struts Validator Load Failure From: Paul Heath [EMAIL PROTECTED] === The same validation.xml works in the Tomcat environment with the same commons, struts, tiles validator jars. Do I need to be including jaxp or xerces in my classpath as well ? FYI - My app server is SilverStream 3.7.3 Steven D. Wilkinson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I haven't used the validator, but that is a Digester error. I would guess that something is wrong in the validation.xml file. Struts Newsgroup @Basebeans.com wrote: Subject: Struts Validator Load Failure From: Paul Heath [EMAIL PROTECTED] === The following is a partial stack trace of when the app server tries to load Struts Validator. I have the latest version of Digester (v1.1.1) and Struts Validator in my classpath. Anyone know how to fix this: java.lang.NoSuchMethodError at org.apache.commons.digester.Digester.getReader(Digester.java:527) at org.apache.commons.digester.Digester.parse(Digester.java:1206) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:237) at com.wintecinc.struts.validation.ValidatorResourcesInitializer.initialize(Val idatorResourcesInitializer.java:123) at com.wintecinc.struts.action.ValidatorServlet.initMapping(ValidatorServlet.ja va:223) at com.wintecinc.struts.action.ValidatorServlet.init(ValidatorServlet.java:123) at javax.servlet.GenericServlet.init(GenericServlet.java:258) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Small addition to - RE: Struts Validator (dumb?) question
Just a quick addition to the message below (sorrysorrysorry): I realize that I can simply call the validate(mapping, request) directly in the Action, but this is what I'd like to avoid as it would somehow create a link between the Action and the validation process. I'd like to keep the validation process distinct from the Action; if possible, the call to the validate(..) method should be hidden and automated. If it's not possible, I guess I'll survive... :) Thanks. Andrej -Original Message- From: Sobkowski, Andrej [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 5:22 PM To: Jakarta Struts (Dev) (E-mail); Jakarta Struts (User) (E-mail) Subject: Struts Validator (dumb?) question Hello All, I'm trying to use the Struts validator but it doesn't seem to be working in my - relatively common - case. I have a modify.jsp page that is displayed upon calling /modifyAction?command=init (using the DispatchAction). No validation must be performed at this point. The user then enters some data and submits the form to /modifyAction?command=update and at this point I clearly want the validation to be performed. I also have a search page that can be called with /modifyAction?command=search (no validation, of course). How can I do this? I've tried the following: - myForm extends ValidatorForm and form name=myForm ... in validation.xml. This doesn't work as the form is validated on the init method (the blank modify.jsp is displayed the first time with an error message saying field required as the validation is performed on the form) - myForm extends ValidatorActionForm and form name=/modifyAction ... in validation.xml This doesn't work because when I call the search page with /modifyAction?command=search, the validation is triggered (it matches /modifyAction) and doesn't allow me to go to the search page until the data is valid (which doesn't really make sense since I want to select something). Do you have any suggestions? Is there a way I can do the above with the Struts validator? Am I structuring my actions in the wrong way? I think I need a DispatchValidatorForm... :) Thank you for any help. Andrej
Re: Struts Validator (dumb?) question
You either would need to define at least one action with validate=true and another with validate=false or perform the call to the ActionForm validates method yourself in the action. There is an example of using one action this way in the jdbc example web app that comes with the Validator. ActionErrors errors = form.validate(mapping, request); if (errors == null || errors.empty()) { update(request, info); } else { saveErrors(request, errors); return (new ActionForward(mapping.getInput())); } David --- Sobkowski, Andrej [EMAIL PROTECTED] wrote: Hello All, I'm trying to use the Struts validator but it doesn't seem to be working in my - relatively common - case. I have a modify.jsp page that is displayed upon calling /modifyAction?command=init (using the DispatchAction). No validation must be performed at this point. The user then enters some data and submits the form to /modifyAction?command=update and at this point I clearly want the validation to be performed. I also have a search page that can be called with /modifyAction?command=search (no validation, of course). How can I do this? I've tried the following: - myForm extends ValidatorForm and form name=myForm ... in validation.xml. This doesn't work as the form is validated on the init method (the blank modify.jsp is displayed the first time with an error message saying field required as the validation is performed on the form) - myForm extends ValidatorActionForm and form name=/modifyAction ... in validation.xml This doesn't work because when I call the search page with /modifyAction?command=search, the validation is triggered (it matches /modifyAction) and doesn't allow me to go to the search page until the data is valid (which doesn't really make sense since I want to select something). Do you have any suggestions? Is there a way I can do the above with the Struts validator? Am I structuring my actions in the wrong way? I think I need a DispatchValidatorForm... :) Thank you for any help. Andrej __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts Validator (dumb?) question
Hello All, I'm trying to use the Struts validator but it doesn't seem to be working in my - relatively common - case. I have a modify.jsp page that is displayed upon calling /modifyAction?command=init (using the DispatchAction). No validation must be performed at this point. The user then enters some data and submits the form to /modifyAction?command=update and at this point I clearly want the validation to be performed. I also have a search page that can be called with /modifyAction?command=search (no validation, of course). How can I do this? I've tried the following: - myForm extends ValidatorForm and form name=myForm ... in validation.xml. This doesn't work as the form is validated on the init method (the blank modify.jsp is displayed the first time with an error message saying field required as the validation is performed on the form) - myForm extends ValidatorActionForm and form name=/modifyAction ... in validation.xml This doesn't work because when I call the search page with /modifyAction?command=search, the validation is triggered (it matches /modifyAction) and doesn't allow me to go to the search page until the data is valid (which doesn't really make sense since I want to select something). Do you have any suggestions? Is there a way I can do the above with the Struts validator? Am I structuring my actions in the wrong way? I think I need a DispatchValidatorForm... :) Thank you for any help. Andrej
RE: struts validator - console messages at startup
Hi, you tried to switch off debugging of the validator-servlet? web.xml - servlet-definition - debug - 0 hope this helps Alexander -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, November 19, 2001 8:29 PM To: [EMAIL PROTECTED] Subject: struts validator - console messages at startup Hi, I have the struts validator extension installed. When ever I start up my app server, the details of all the different validations are displayed on the server console. Is there a way to suppress this? Thanks, Michelle _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
struts validator - console messages at startup
Hi, I have the struts validator extension installed. When ever I start up my app server, the details of all the different validations are displayed on the server console. Is there a way to suppress this? Thanks, Michelle _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts-Validator problem: NoClassDefFoundError
Hi I am trying to use Validator in my application and can not get it to work. I have a single test form that I would like to use the Validator for client-side and server-side validation. If I add the following %@ taglib uri=/WEB-INF/struts-validator.tld prefix=validator % reference to the taglib to the test form JSP page, when I access this JSP page after deploying the application, I get a NoClassDefFoundError exception thrown (see full message at the end of this email). If I remove the taglib reference, I don't get the error but the validation rules don't get applied either. The latest version of the struts-validator.jar file and the struts-validator.tld files are in the WEB-INF/libs directory. Thanks in advance for any help received. My web.xml file is defined as follows: . servlet servlet-namevalidator/servlet-name servlet-classcom.wintecinc.struts.action.ValidatorServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/validation.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param load-on-startup2/load-on-startup /servlet taglib taglib-uri/tags/struts-validator.tld/taglib-uri taglib-location/WEB-INF/struts-validator.tld/taglib-location /taglib My Validation.xml file is defined as below: form-validation global validator name=required classname=com.wintecinc.struts.validation.StrutsValidator method=validateRequired msg=error.required javascript![CDATA[ function validateRequired(form) { var bValid = true; var focusField = null; var i = 0; var fields = new Array(); oRequired = new required(); for (x in oRequired) { if ((form[oRequired[x][0]].type == 'text' || form[oRequired[x][0]].type == 'textarea' || form[oRequired[x][0]].type == 'select' || form[oRequired[x][0]].type == 'radio' || form[oRequired[x][0]].type == 'password') form[oRequired[x][0]].value == '') { if (i == 0) focusField = form[oRequired[x][0]]; fields[i++] = oRequired[x][1]; bValid = false; } } if (fields.length 0) { focusField.focus(); alert(fields.join('\n')); } return bValid; }]] /javascript /validator /global formset formname=personalDetailsForm fieldproperty=fName depends=required,mask arg0 key=label.fname/ msg name=mask key=prompt.personalDetailsForm.fname.maskmsg/ arg0 key=label.fname/ var var-namemask/var-name var-value^[a-zA-Z]*$/var-value /var /field /form /formset /form-validation ERROR TEXT == 01-Nov-01 11:37:51 GMT Info HTTP [WebAppServletContext(2791227,olympus,/olympus)] r esolved taglib uri '/WEB-INF/struts-html.tld' to taglib-location /WEB-INF/struts-html.tld: 01-Nov-01 11:37:52 GMT Error HTTP [WebAppServletContext(2791227,olympus,/olympus)] Servlet failed with Exception java.lang.NoClassDefFoundError: org/apache/struts/action/ActionMessage at java.lang.Class.getMethods0(Native Method) at java.lang.Class.getDeclaredMethods(Class.java:1039) at java.beans.Introspector$1.run(Introspector.java:852) at java.security.AccessController.doPrivileged(Native Method) at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:850) at java.beans.Introspector.getTargetEventInfo(Introspector.java:556) at java.beans.Introspector.getBeanInfo(Introspector.java:294) at java.beans.Introspector.getBeanInfo(Introspector.java:128) at weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1003) at weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java:941) at weblogic.servlet.jsp.StandardTagLib.init(StandardTagLib.java:207) at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:145) at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:4177) at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4018) at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3865) at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2039) at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1853) at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1735) at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1015) at
Re: Struts-Validator problem: NoClassDefFoundError
search the archives for more postings, but I have heard different approaches when I posted the same problem. 1. Check to see that you are using the latest Struts nightly build. 2. If not using hte latest nightly build, this may work if you use Tomcat 4.0 3. Remove Jaxp, crimson and parser.jar files and add xerces.jar file. The first one makes sense to me and the last two I am puzzled about. The main thing is that ActionMessage is a new class to the nightly builds. However this may be circumvented (the use of the ActionMessage) by changing the JSP to not use the new feature (at least this is what I have been told). Sorry if I am confusing you, but as you can probably tell, i myself am confused, but since I do not have to do the work immediately, I have been holding off figuring out exactly what the problem is. - Sandeep --- Parvaze Suleman [EMAIL PROTECTED] wrote: Hi I am trying to use Validator in my application and can not get it to work. I have a single test form that I would like to use the Validator for client-side and server-side validation. If I add the following %@ taglib uri=/WEB-INF/struts-validator.tld prefix=validator % reference to the taglib to the test form JSP page, when I access this JSP page after deploying the application, I get a NoClassDefFoundError exception thrown (see full message at the end of this email). If I remove the taglib reference, I don't get the error but the validation rules don't get applied either. The latest version of the struts-validator.jar file and the struts-validator.tld files are in the WEB-INF/libs directory. Thanks in advance for any help received. My web.xml file is defined as follows: . servlet servlet-namevalidator/servlet-name servlet-classcom.wintecinc.struts.action.ValidatorServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/validation.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param load-on-startup2/load-on-startup /servlet taglib taglib-uri/tags/struts-validator.tld/taglib-uri taglib-location/WEB-INF/struts-validator.tld/taglib-location /taglib My Validation.xml file is defined as below: form-validation global validator name=required classname=com.wintecinc.struts.validation.StrutsValidator method=validateRequired msg=error.required javascript![CDATA[ function validateRequired(form) { var bValid = true; var focusField = null; var i = 0; var fields = new Array(); oRequired = new required(); for (x in oRequired) { if ((form[oRequired[x][0]].type == 'text' || form[oRequired[x][0]].type == 'textarea' || form[oRequired[x][0]].type == 'select' || form[oRequired[x][0]].type == 'radio' || form[oRequired[x][0]].type == 'password') form[oRequired[x][0]].value == '') { if (i == 0) focusField = form[oRequired[x][0]]; fields[i++] = oRequired[x][1]; bValid = false; } } if (fields.length 0) { focusField.focus(); alert(fields.join('\n')); } return bValid; }]] /javascript /validator /global formset formname=personalDetailsForm fieldproperty=fName depends=required,mask arg0 key=label.fname/ msg name=mask key=prompt.personalDetailsForm.fname.maskmsg/ arg0 key=label.fname/ var var-namemask/var-name var-value^[a-zA-Z]*$/var-value /var /field /form /formset /form-validation ERROR TEXT == 01-Nov-01 11:37:51 GMT Info HTTP [WebAppServletContext(2791227,olympus,/olympus)] r esolved taglib uri '/WEB-INF/struts-html.tld' to taglib-location /WEB-INF/struts-html.tld: 01-Nov-01 11:37:52 GMT Error HTTP [WebAppServletContext(2791227,olympus,/olympus)] Servlet failed with Exception java.lang.NoClassDefFoundError: org/apache/struts/action/ActionMessage at java.lang.Class.getMethods0(Native Method) at java.lang.Class.getDeclaredMethods(Class.java:1039) at java.beans.Introspector$1.run(Introspector.java:852) at java.security.AccessController.doPrivileged(Native Method) at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:850) at
RE: Questions About Struts Validator
is this feature available in Struts 1.0? -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 21, 2001 1:04 PM To: [EMAIL PROTECTED] Subject: RE: Questions About Struts Validator That isn't possible with the default mask validator. I've recently added a min and max length validation to nightly builds though. Or you could either write your own mask validation method that accepts multiple inputs or you can define the mask validator again under a different name like mask2. validator name=mask2 classname=com.wintecinc.struts.validation.StrutsValidator method=validateMask depends=required msg=errors.invalid fieldproperty=lastName depends=required,mask,mask2 msg name=mask key=registrationForm.lastname.maskmsg/ msg name=mask2 key=registrationForm.lastname.mask2msg/ arg0 key=registrationForm.lastname.displayname/ arg1 name=maxlength key=${var:maxlength} resource=false/ var var-namemask/var-name var-value^[a-z]*$/var-value /var var var-namemask2/var-name var-value^[A-Z]*$/var-value /var var var-namemaxlength/var-name var-value16/var-value /var /field David --- Paul Darling [EMAIL PROTECTED] wrote: Is is possible to use multiple 'mask' validators that apply different expressions? For instance, in addition to checking that a string contains only a-z or A-Z characters, you might want to validate the string length. It's possible to use an expression that combines the types of validation (e.g. ^[a-zA-Z0-9]{,16}$), but then it's not possible to use an error message that is specific to whether the validation failed due to the character content or the length. Paul -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 1:17 PM To: [EMAIL PROTECTED] Subject: RE: Questions About Struts Validator This is what you were asking about though? Everything makes sense now? David --- Vaughan Jackson [EMAIL PROTECTED] wrote: David, I am sorry, I hadn't understood this before. Thanks again, Vaughan. -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 12:17 PM To: [EMAIL PROTECTED] Subject: RE: Questions About Struts Validator For Q2: You can override the default validator's error message by specifying a msg element or you can change the defult of course. fieldproperty=lastName depends=required,mask msg name=mask key=registrationForm.lastname.maskmsg/ arg0 key=registrationForm.lastname.displayname/ var var-namemask/var-name var-value^[a-zA-Z]*$/var-value /var /field You can also specify different arguments to go with different errors. fieldproperty=integer depends=required,integer,range arg0 key=typeForm.integer.displayname/ arg1 name=range key=${var:min} resource=false/ arg2 name=range key=${var:max} resource=false/ var var-namemin/var-name var-value10/var-value /var var var-namemax/var-name var-value20/var-value /var /field David --- Vaughan Jackson [EMAIL PROTECTED] wrote: David, Thanks for your feedback. I will try out the technique you describe for Q1. I could have phrased Q2 better: ... and have a different error message resulting according to which rule(s) is/are broken?. Yes, you have told me what I wanted to know for Q3. Vaughan. -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 10:36 AM To: [EMAIL PROTECTED] Subject: Re: Questions About Struts Validator --- Vaughan Jackson [EMAIL PROTECTED] wrote: Hi, Three questions in fact. Some variants on these came up earlier, but we would like to know whether the Struts1.0-compatible version makes any of the below possible, or whether support for them is coming. The 7/2/2001 was the last build compatible with the Struts 1.0 release. It can be downloaded from http://home.earthlink.net/~dwinterfeldt/. 1. Is there any way to have multiple validation.xml-type files associated with a single web application
RE: Questions About Struts Validator
What feature are you referring to? the min/max validators or defining a second mask validator as 'mask2'? Also, this would depend on the validator version you are using. Are you asking if the latest release will work with Struts 1.0? It should. Someone said they were using a more current release of the validator with the Struts 1.0 release. It uses the commons packages (bean, digester, and collections) though so you would need to add them to your WEB-INF/lib directory. David --- Trieu, Danny [EMAIL PROTECTED] wrote: is this feature available in Struts 1.0? -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 21, 2001 1:04 PM To: [EMAIL PROTECTED] Subject: RE: Questions About Struts Validator That isn't possible with the default mask validator. I've recently added a min and max length validation to nightly builds though. Or you could either write your own mask validation method that accepts multiple inputs or you can define the mask validator again under a different name like mask2. validator name=mask2 classname=com.wintecinc.struts.validation.StrutsValidator method=validateMask depends=required msg=errors.invalid fieldproperty=lastName depends=required,mask,mask2 msg name=mask key=registrationForm.lastname.maskmsg/ msg name=mask2 key=registrationForm.lastname.mask2msg/ arg0 key=registrationForm.lastname.displayname/ arg1 name=maxlength key=${var:maxlength} resource=false/ var var-namemask/var-name var-value^[a-z]*$/var-value /var var var-namemask2/var-name var-value^[A-Z]*$/var-value /var var var-namemaxlength/var-name var-value16/var-value /var /field David --- Paul Darling [EMAIL PROTECTED] wrote: Is is possible to use multiple 'mask' validators that apply different expressions? For instance, in addition to checking that a string contains only a-z or A-Z characters, you might want to validate the string length. It's possible to use an expression that combines the types of validation (e.g. ^[a-zA-Z0-9]{,16}$), but then it's not possible to use an error message that is specific to whether the validation failed due to the character content or the length. Paul -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 1:17 PM To: [EMAIL PROTECTED] Subject: RE: Questions About Struts Validator This is what you were asking about though? Everything makes sense now? David --- Vaughan Jackson [EMAIL PROTECTED] wrote: David, I am sorry, I hadn't understood this before. Thanks again, Vaughan. -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 12:17 PM To: [EMAIL PROTECTED] Subject: RE: Questions About Struts Validator For Q2: You can override the default validator's error message by specifying a msg element or you can change the defult of course. fieldproperty=lastName depends=required,mask msg name=mask key=registrationForm.lastname.maskmsg/ arg0 key=registrationForm.lastname.displayname/ var var-namemask/var-name var-value^[a-zA-Z]*$/var-value /var /field You can also specify different arguments to go with different errors. fieldproperty=integer depends=required,integer,range arg0 key=typeForm.integer.displayname/ arg1 name=range key=${var:min} resource=false/ arg2 name=range key=${var:max} resource=false/ var var-namemin/var-name var-value10/var-value /var var var-namemax/var-name var-value20/var-value /var /field David --- Vaughan Jackson [EMAIL PROTECTED] wrote: David, Thanks for your feedback. I will try out the technique you describe for Q1. I could have phrased Q2 better: ... and have a different error message resulting according to which rule(s) is/are broken?. Yes, you have told me what I wanted to know for Q3. Vaughan. -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001
RE: Questions About Struts Validator
The validator is in the Struts nightly source downloads in the contrib/validator directory. I also keep the documentation and some downloads posted at this url. The most current will always be in the nightly downloads. http://home.earthlink.net/~dwinterfeldt/ The most recent release has the min/max length validations. The 7/2/2001 release was the last one made with Struts v1.0. It doesn't have the min/max length, but you can make a 'mask2' validator (as you can in most releases). David --- Trieu, Danny [EMAIL PROTECTED] wrote: I guess I am already behind...:) can you give me links to where I can read more about these validator framework and where I can download the sample and distribution? Thanks, --danny -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 10:43 AM To: [EMAIL PROTECTED] Subject: RE: Questions About Struts Validator What feature are you referring to? the min/max validators or defining a second mask validator as 'mask2'? Also, this would depend on the validator version you are using. Are you asking if the latest release will work with Struts 1.0? It should. Someone said they were using a more current release of the validator with the Struts 1.0 release. It uses the commons packages (bean, digester, and collections) though so you would need to add them to your WEB-INF/lib directory. David --- Trieu, Danny [EMAIL PROTECTED] wrote: is this feature available in Struts 1.0? -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 21, 2001 1:04 PM To: [EMAIL PROTECTED] Subject: RE: Questions About Struts Validator That isn't possible with the default mask validator. I've recently added a min and max length validation to nightly builds though. Or you could either write your own mask validation method that accepts multiple inputs or you can define the mask validator again under a different name like mask2. validator name=mask2 classname=com.wintecinc.struts.validation.StrutsValidator method=validateMask depends=required msg=errors.invalid fieldproperty=lastName depends=required,mask,mask2 msg name=mask key=registrationForm.lastname.maskmsg/ msg name=mask2 key=registrationForm.lastname.mask2msg/ arg0 key=registrationForm.lastname.displayname/ arg1 name=maxlength key=${var:maxlength} resource=false/ var var-namemask/var-name var-value^[a-z]*$/var-value /var var var-namemask2/var-name var-value^[A-Z]*$/var-value /var var var-namemaxlength/var-name var-value16/var-value /var /field David --- Paul Darling [EMAIL PROTECTED] wrote: Is is possible to use multiple 'mask' validators that apply different expressions? For instance, in addition to checking that a string contains only a-z or A-Z characters, you might want to validate the string length. It's possible to use an expression that combines the types of validation (e.g. ^[a-zA-Z0-9]{,16}$), but then it's not possible to use an error message that is specific to whether the validation failed due to the character content or the length. Paul -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 1:17 PM To: [EMAIL PROTECTED] Subject: RE: Questions About Struts Validator This is what you were asking about though? Everything makes sense now? David --- Vaughan Jackson [EMAIL PROTECTED] wrote: David, I am sorry, I hadn't understood this before. Thanks again, Vaughan. -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 12:17 PM To: [EMAIL PROTECTED] Subject: RE: Questions About Struts Validator For Q2: You can override the default validator's error message by specifying a msg element or you can change the defult of course. fieldproperty=lastName depends=required,mask msg name=mask key=registrationForm.lastname.maskmsg/ arg0 key=registrationForm.lastname.displayname/ var var-namemask/var-name var-value^[a-zA-Z]*$/var-value /var /field You can also specify different arguments to go with different errors. fieldproperty=integer depends=required
RE: Questions About Struts Validator
Thanks you, David -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 11:53 AM To: [EMAIL PROTECTED] Subject: RE: Questions About Struts Validator The validator is in the Struts nightly source downloads in the contrib/validator directory. I also keep the documentation and some downloads posted at this url. The most current will always be in the nightly downloads. http://home.earthlink.net/~dwinterfeldt/ The most recent release has the min/max length validations. The 7/2/2001 release was the last one made with Struts v1.0. It doesn't have the min/max length, but you can make a 'mask2' validator (as you can in most releases). David --- Trieu, Danny [EMAIL PROTECTED] wrote: I guess I am already behind...:) can you give me links to where I can read more about these validator framework and where I can download the sample and distribution? Thanks, --danny -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 10:43 AM To: [EMAIL PROTECTED] Subject: RE: Questions About Struts Validator What feature are you referring to? the min/max validators or defining a second mask validator as 'mask2'? Also, this would depend on the validator version you are using. Are you asking if the latest release will work with Struts 1.0? It should. Someone said they were using a more current release of the validator with the Struts 1.0 release. It uses the commons packages (bean, digester, and collections) though so you would need to add them to your WEB-INF/lib directory. David --- Trieu, Danny [EMAIL PROTECTED] wrote: is this feature available in Struts 1.0? -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 21, 2001 1:04 PM To: [EMAIL PROTECTED] Subject: RE: Questions About Struts Validator That isn't possible with the default mask validator. I've recently added a min and max length validation to nightly builds though. Or you could either write your own mask validation method that accepts multiple inputs or you can define the mask validator again under a different name like mask2. validator name=mask2 classname=com.wintecinc.struts.validation.StrutsValidator method=validateMask depends=required msg=errors.invalid fieldproperty=lastName depends=required,mask,mask2 msg name=mask key=registrationForm.lastname.maskmsg/ msg name=mask2 key=registrationForm.lastname.mask2msg/ arg0 key=registrationForm.lastname.displayname/ arg1 name=maxlength key=${var:maxlength} resource=false/ var var-namemask/var-name var-value^[a-z]*$/var-value /var var var-namemask2/var-name var-value^[A-Z]*$/var-value /var var var-namemaxlength/var-name var-value16/var-value /var /field David --- Paul Darling [EMAIL PROTECTED] wrote: Is is possible to use multiple 'mask' validators that apply different expressions? For instance, in addition to checking that a string contains only a-z or A-Z characters, you might want to validate the string length. It's possible to use an expression that combines the types of validation (e.g. ^[a-zA-Z0-9]{,16}$), but then it's not possible to use an error message that is specific to whether the validation failed due to the character content or the length. Paul -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 1:17 PM To: [EMAIL PROTECTED] Subject: RE: Questions About Struts Validator This is what you were asking about though? Everything makes sense now? David --- Vaughan Jackson [EMAIL PROTECTED] wrote: David, I am sorry, I hadn't understood this before. Thanks again, Vaughan. -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 12:17 PM To: [EMAIL PROTECTED] Subject: RE: Questions About Struts Validator For Q2: You can override the default validator's error message by specifying a msg element or you can change the defult of course. fieldproperty=lastName depends=required,mask msg name=mask key=registrationForm.lastname.maskmsg/ arg0 key=registrationForm.lastname.displayname/ var var-namemask/var-name var-value^[a-zA-Z]*$/var-value
RE: Questions About Struts Validator
That isn't possible with the default mask validator. I've recently added a min and max length validation to nightly builds though. Or you could either write your own mask validation method that accepts multiple inputs or you can define the mask validator again under a different name like mask2. validator name=mask2 classname=com.wintecinc.struts.validation.StrutsValidator method=validateMask depends=required msg=errors.invalid fieldproperty=lastName depends=required,mask,mask2 msg name=mask key=registrationForm.lastname.maskmsg/ msg name=mask2 key=registrationForm.lastname.mask2msg/ arg0 key=registrationForm.lastname.displayname/ arg1 name=maxlength key=${var:maxlength} resource=false/ var var-namemask/var-name var-value^[a-z]*$/var-value /var var var-namemask2/var-name var-value^[A-Z]*$/var-value /var var var-namemaxlength/var-name var-value16/var-value /var /field David --- Paul Darling [EMAIL PROTECTED] wrote: Is is possible to use multiple 'mask' validators that apply different expressions? For instance, in addition to checking that a string contains only a-z or A-Z characters, you might want to validate the string length. It's possible to use an expression that combines the types of validation (e.g. ^[a-zA-Z0-9]{,16}$), but then it's not possible to use an error message that is specific to whether the validation failed due to the character content or the length. Paul -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 1:17 PM To: [EMAIL PROTECTED] Subject: RE: Questions About Struts Validator This is what you were asking about though? Everything makes sense now? David --- Vaughan Jackson [EMAIL PROTECTED] wrote: David, I am sorry, I hadn't understood this before. Thanks again, Vaughan. -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 12:17 PM To: [EMAIL PROTECTED] Subject: RE: Questions About Struts Validator For Q2: You can override the default validator's error message by specifying a msg element or you can change the defult of course. fieldproperty=lastName depends=required,mask msg name=mask key=registrationForm.lastname.maskmsg/ arg0 key=registrationForm.lastname.displayname/ var var-namemask/var-name var-value^[a-zA-Z]*$/var-value /var /field You can also specify different arguments to go with different errors. fieldproperty=integer depends=required,integer,range arg0 key=typeForm.integer.displayname/ arg1 name=range key=${var:min} resource=false/ arg2 name=range key=${var:max} resource=false/ var var-namemin/var-name var-value10/var-value /var var var-namemax/var-name var-value20/var-value /var /field David --- Vaughan Jackson [EMAIL PROTECTED] wrote: David, Thanks for your feedback. I will try out the technique you describe for Q1. I could have phrased Q2 better: ... and have a different error message resulting according to which rule(s) is/are broken?. Yes, you have told me what I wanted to know for Q3. Vaughan. -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 10:36 AM To: [EMAIL PROTECTED] Subject: Re: Questions About Struts Validator --- Vaughan Jackson [EMAIL PROTECTED] wrote: Hi, Three questions in fact. Some variants on these came up earlier, but we would like to know whether the Struts1.0-compatible version makes any of the below possible, or whether support for them is coming. The 7/2/2001 was the last build compatible with the Struts 1.0 release. It can be downloaded from http://home.earthlink.net/~dwinterfeldt/. 1. Is there any way to have multiple validation.xml-type files associated with a single web application? Yes, but it isn't a build in feature. The ValidatorServlet calls ValidatorResourcesInitializer which has an initialize method which returns a ValidatorResources object
RE: Questions About Struts Validator
Is is possible to use multiple 'mask' validators that apply different expressions? For instance, in addition to checking that a string contains only a-z or A-Z characters, you might want to validate the string length. It's possible to use an expression that combines the types of validation (e.g. ^[a-zA-Z0-9]{,16}$), but then it's not possible to use an error message that is specific to whether the validation failed due to the character content or the length. Paul -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 1:17 PM To: [EMAIL PROTECTED] Subject: RE: Questions About Struts Validator This is what you were asking about though? Everything makes sense now? David --- Vaughan Jackson [EMAIL PROTECTED] wrote: David, I am sorry, I hadn't understood this before. Thanks again, Vaughan. -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 12:17 PM To: [EMAIL PROTECTED] Subject: RE: Questions About Struts Validator For Q2: You can override the default validator's error message by specifying a msg element or you can change the defult of course. fieldproperty=lastName depends=required,mask msg name=mask key=registrationForm.lastname.maskmsg/ arg0 key=registrationForm.lastname.displayname/ var var-namemask/var-name var-value^[a-zA-Z]*$/var-value /var /field You can also specify different arguments to go with different errors. fieldproperty=integer depends=required,integer,range arg0 key=typeForm.integer.displayname/ arg1 name=range key=${var:min} resource=false/ arg2 name=range key=${var:max} resource=false/ var var-namemin/var-name var-value10/var-value /var var var-namemax/var-name var-value20/var-value /var /field David --- Vaughan Jackson [EMAIL PROTECTED] wrote: David, Thanks for your feedback. I will try out the technique you describe for Q1. I could have phrased Q2 better: ... and have a different error message resulting according to which rule(s) is/are broken?. Yes, you have told me what I wanted to know for Q3. Vaughan. -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 10:36 AM To: [EMAIL PROTECTED] Subject: Re: Questions About Struts Validator --- Vaughan Jackson [EMAIL PROTECTED] wrote: Hi, Three questions in fact. Some variants on these came up earlier, but we would like to know whether the Struts1.0-compatible version makes any of the below possible, or whether support for them is coming. The 7/2/2001 was the last build compatible with the Struts 1.0 release. It can be downloaded from http://home.earthlink.net/~dwinterfeldt/. 1. Is there any way to have multiple validation.xml-type files associated with a single web application? Yes, but it isn't a build in feature. The ValidatorServlet calls ValidatorResourcesInitializer which has an initialize method which returns a ValidatorResources object and then the ValidatorResources object is put into application scope. When the ValidatorForm's validate method is called the resource is retrieved and set along with some other variables to configure the Validator class. So you would just have to write something that loads multiple validation files and puts them somewhere in scope. Then the ActionForm/ValidatorForm (whichever you subclass) would need to know which ValidatorResources to retrieve from scope. Otherwise the code would be the same. 2. Is there any way to associate more than one (server-side) validation rule with the same field? The depends attribute can have as many validation/validator references you want. fieldproperty=zipPostal depends=required,mask page=2 arg0 key=registrationForm.zippostal.displayname/ var var-namemask/var-name var-value${zip}/var-value /var /field 3. Is it possible to associate the validation directly with the field involved, without having to refer to it within the context of a given form? I'm not sure what you mean exactly. What do you mean by directly associate a field? Are you asking if you
Difficulty to integrate struts validator
Hi I developed a struts application (jakarta-tomcat-3.2.1, struts 1.0). So far, everything runs well. Then, I integrated the Struts Validator by David Winterfeldt (version 0.5). From now on, I get the following error as soon as I call a page whith field, which should be validated. Is there something wrong whith the validator, did I miss to download some files or is there something important, which I missed when I integrated it to my application? For the struts validator, I am using Struts_Validator-20010308.jar and jakarta-regexp-1.2.jar. FYI: I am able to run the example application struts-validator-example, but I don't get my own application work together with the struts validator. Any tips how I can solve my problem ? Marcel table width=100% border=0 cellspacing=0 cellpadding=4 form name=editForm method=post action=/kosa/kosa/jsp/edit.doh1Included servlet error: 500/h1 h2Location: /kosa/kosa/jsp/edit.jsp/h2 h2Error Location: /kosa/kosa/jsp/edit1.jsp/h2bInternal Servlet Error:/bbrprejavax.servlet.ServletException: org/apache/regexp/RESyntaxException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at kosa.jsp._0002fkosa_0002fjsp_0002fedit_0002ejspedit_jsp_0._jspService(_0002fkosa_0002fjsp_0002fedit_0002ejspedit_jsp_0.java:288) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) /pre bRoot cause:/b prejavax.servlet.jsp.JspException: org/apache/regexp/RESyntaxException at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149) at kosa.jsp._0002fkosa_0002fjsp_0002fedit_0002ejspedit_jsp_0._jspService(_0002fkosa_0002fjsp_0002fedit_0002ejspedit_jsp_0.java:266) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) /pre
AW: AW: Bug in Struts validator !
no problem ;-) -Ursprüngliche Nachricht- Von: David Winterfeldt [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 13. September 2001 17:58 An: [EMAIL PROTECTED] Betreff: Re: AW: Bug in Struts validator ! My bad. I'm blind. I'll fix it and check it into CVS. David --- juraj Lenharcik [EMAIL PROTECTED] wrote: when i set the locale for germany , the fromatter object is still null after the check. i set this line: formatter = DateFormat.getDateInstance(DateFormat.SHORT, locale); instead of: DateFormat.getDateInstance(DateFormat.SHORT, locale); after this the formatter object was written and is not null. juraj -Ursprüngliche Nachricht- Von: David Winterfeldt [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 13. September 2001 16:41 An: [EMAIL PROTECTED] Betreff: Re: Bug in Struts validator ! I don't see that you changed anything except to add braces around the if statement. It already checks if the locale is null and uses the default locale if it is null. Am I missing what you changed? David --- juraj Lenharcik [EMAIL PROTECTED] wrote: hi all, In the class GenericValidator, when you use an another locale than the default you get a null pointer exception. i tried it with the german locale settings. i fixed the bug in this lines: DateFormat formatter = null; if (locale != null){ == formatter = DateFormat.getDateInstance(DateFormat.SHORT, locale); }else{ == formatter = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()); } formatter.setLenient(false); can someone change it and check it into the cvs? thanks bye juraj __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/
Re: Bug in Struts validator !
I don't see that you changed anything except to add braces around the if statement. It already checks if the locale is null and uses the default locale if it is null. Am I missing what you changed? David --- juraj Lenharcik [EMAIL PROTECTED] wrote: hi all, In the class GenericValidator, when you use an another locale than the default you get a null pointer exception. i tried it with the german locale settings. i fixed the bug in this lines: DateFormat formatter = null; if (locale != null){ ==formatter = DateFormat.getDateInstance(DateFormat.SHORT, locale); }else{ ==formatter = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()); } formatter.setLenient(false); can someone change it and check it into the cvs? thanks bye juraj __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/
AW: Bug in Struts validator !
when i set the locale for germany , the fromatter object is still null after the check. i set this line: formatter = DateFormat.getDateInstance(DateFormat.SHORT, locale); instead of: DateFormat.getDateInstance(DateFormat.SHORT, locale); after this the formatter object was written and is not null. juraj -Ursprüngliche Nachricht- Von: David Winterfeldt [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 13. September 2001 16:41 An: [EMAIL PROTECTED] Betreff: Re: Bug in Struts validator ! I don't see that you changed anything except to add braces around the if statement. It already checks if the locale is null and uses the default locale if it is null. Am I missing what you changed? David --- juraj Lenharcik [EMAIL PROTECTED] wrote: hi all, In the class GenericValidator, when you use an another locale than the default you get a null pointer exception. i tried it with the german locale settings. i fixed the bug in this lines: DateFormat formatter = null; if (locale != null){ ==formatter = DateFormat.getDateInstance(DateFormat.SHORT, locale); }else{ ==formatter = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()); } formatter.setLenient(false); can someone change it and check it into the cvs? thanks bye juraj __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/
AW: Bug in Struts validator !
when i set the locale for germany , the fromatter object is still null after the check. i set this line: formatter = DateFormat.getDateInstance(DateFormat.SHORT, locale); instead of: DateFormat.getDateInstance(DateFormat.SHORT, locale); after this the formatter object was written and is not null. juraj -Ursprüngliche Nachricht- Von: David Winterfeldt [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 13. September 2001 16:41 An: [EMAIL PROTECTED] Betreff: Re: Bug in Struts validator ! I don't see that you changed anything except to add braces around the if statement. It already checks if the locale is null and uses the default locale if it is null. Am I missing what you changed? David --- juraj Lenharcik [EMAIL PROTECTED] wrote: hi all, In the class GenericValidator, when you use an another locale than the default you get a null pointer exception. i tried it with the german locale settings. i fixed the bug in this lines: DateFormat formatter = null; if (locale != null){ ==formatter = DateFormat.getDateInstance(DateFormat.SHORT, locale); }else{ ==formatter = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()); } formatter.setLenient(false); can someone change it and check it into the cvs? thanks bye juraj __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/
Re: AW: Bug in Struts validator !
My bad. I'm blind. I'll fix it and check it into CVS. David --- juraj Lenharcik [EMAIL PROTECTED] wrote: when i set the locale for germany , the fromatter object is still null after the check. i set this line: formatter = DateFormat.getDateInstance(DateFormat.SHORT, locale); instead of: DateFormat.getDateInstance(DateFormat.SHORT, locale); after this the formatter object was written and is not null. juraj -Ursprüngliche Nachricht- Von: David Winterfeldt [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 13. September 2001 16:41 An: [EMAIL PROTECTED] Betreff: Re: Bug in Struts validator ! I don't see that you changed anything except to add braces around the if statement. It already checks if the locale is null and uses the default locale if it is null. Am I missing what you changed? David --- juraj Lenharcik [EMAIL PROTECTED] wrote: hi all, In the class GenericValidator, when you use an another locale than the default you get a null pointer exception. i tried it with the german locale settings. i fixed the bug in this lines: DateFormat formatter = null; if (locale != null){ == formatter = DateFormat.getDateInstance(DateFormat.SHORT, locale); }else{ == formatter = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()); } formatter.setLenient(false); can someone change it and check it into the cvs? thanks bye juraj __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/
Bug in Struts validator !
hi all, In the class GenericValidator, when you use an another locale than the default you get a null pointer exception. i tried it with the german locale settings. i fixed the bug in this lines: DateFormat formatter = null; if (locale != null){ == formatter = DateFormat.getDateInstance(DateFormat.SHORT, locale); }else{ == formatter = DateFormat.getDateInstance(DateFormat.SHORT, Locale.getDefault()); } formatter.setLenient(false); can someone change it and check it into the cvs? thanks bye juraj
Struts Validator
I'm having a look at the Struts validator, and I've got a couple of questions: 1. There appears to be a load of whitespace in the genertated Javascript, which bloats the HTML page. Is this normal, or is it me? 2. I'm trying a simple 'required' validation as defined in validation.xml on a password which is in an html:password.../. The html:text.../ gets validated ok, but not the password. Any ideas? 3. I was thinking about formsets and the locale specific validation. Is it possible to have a 'base' set of validations that are 'overridden' by locale specific validation? If the answers are in the docs, sorry but I've missed 'em. Thanks for any help. --- Andy BEGIN:VCARD VERSION:2.1 N:Noble;Andy;;Mr. FN:Andy Noble ORG:Data Workshop Ltd TEL;WORK;VOICE:+44(0)161 705 1518 TEL;CELL;VOICE:+44(0)7947 854916 TEL;WORK;FAX:+44(0)161 705 1295 ADR;WORK:;;United Kingdom LABEL;WORK:United Kingdom X-WAB-GENDER:2 URL: URL:http://www.data-workshop.com BDAY:19700128 EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20010903T184047Z END:VCARD
RE: Anyone have the Struts Validator example working?
Hi, The Orion documentation about the load-on-startup states that the optional contents of these element must be an integer indicating the order in which the servlet should be loaded. Then if you use values like 1 (ActionServlet) and 2 (ValidatorServlet) or any different values you want, it should work fine. Anyway you better update to Orion 1.5.2: the new stable release. Giustino De Vincentiis -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Inviato: martedì 5 giugno 2001 23.05 A: [EMAIL PROTECTED] Oggetto: RE: Anyone have the Struts Validator example working? My findings with the following settings: == load-on-startup=0 or 1 web.xml's setting definition sequence: 1. validator servlet 2. strut action servlet == All registration example - javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE both change language example - javax.servlet.jsp.JspException: Cannot find global ActionForward for name registration == load-on-startup=0 or 1 web.xml's servlet definition sequence: 1. strut action servlet 2. validator servlet == Registration Example - input form can be displayed - error when save java.lang.NullPointerException at com.wintecinc.struts.action.ValidatorForm.validate(ValidatorForm.java:123) Registration with Javascript Validation and Server Validation - java.lang.NullPointerException at com.wintecinc.struts.taglib.html.JavascriptValidatorTag.doStartTag(Javascrip tValidatorTag.java:174) Multi-Part Registration Example with Javascript Validation and Server Validation java.lang.NullPointerException at com.wintecinc.struts.taglib.html.JavascriptValidatorTag.doStartTag(Javascrip tValidatorTag.java:174) Type Example validating some primitive numbers, a range on the integer, and a date. - input form can be displayed - error when save java.lang.NullPointerException at com.wintecinc.struts.action.ValidatorForm.validate(ValidatorForm.java:123) Both change language example - input from with correct lang. can be displayed - error when save java.lang.NullPointerException at com.wintecinc.struts.action.ValidatorForm.validate(ValidatorForm.java:123) == web.xml's servlet definition sequence: 1. validator servletwith load-on-startup = 2 2. strut action servlet with load-on-startup = 1 == Everything works Fine Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: June 5, 2001 2:32 PM To: [EMAIL PROTECTED] Subject: RE: Anyone have the Struts Validator example working? I still have the following error when I tried to access http://localhost/share/validator/registration.jsp: 500 Internal Server Error javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.struts.util.RequestUtils.message(RequestUtils.java:292) at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239) at /registration.jsp._jspService(/registration.jsp.java:72) (JSP page line 9) at com.orionserver[Orion/1.5.2 (build 10460)].http.OrionHttpJspPage.service(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.http.JSPServlet.service(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source) == My Settings are as follow: == Orion: 1.5.2 [application.xml] web-module id=validator path=../../../../dev/share/struts-validator/validator// [default-web-site.xml] web-app application=default name=validator root=/share/validator/ validator.war: extracted from validator20010510.zip this war file is extracted and put in directory ../../../../dev/share/struts-validator/validator/ modify web.xml for load-on-startup value to 1 from 2 (already tried 0 too - same error) as follows: !-- Validator Initialization Servlet Configuration -- servlet servlet-namevalidator/servlet-name servlet-classcom.wintecinc.struts.action.ValidatorServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/validation.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param load-on-startup1/load-on-startup /servlet !-- Action Servlet Configuration
Anyone have the Struts Validator example working?
Hi, I would like to try David Winterfeldt's validator for a new project I'm working on but I can't seem to get it to work with Orion 1.51. The default welcome page comes up and I can see the validator initializing. I get the following when trying to go to the registration example page: javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.struts.util.RequestUtils.message(RequestUtils.java:292) at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239) at /registration.jsp._jspService(/registration.jsp.java:72) (JSP page line 9) at com.orionserver[Orion/1.5.1 (build 10410)].http.OrionHttpJspPage.service(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._ah._pcd(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)].server.http.JSPServlet.service(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._cob._xdd(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._cob._shc(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._iz._rzc(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._iz._ft(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._ip.run(Unknown Source) Any Ideas? Thanks, Chuck
RE: Anyone have the Struts Validator example working?
I used the validator with Orion and had a similar behavior, the problem was in the web.xml. Check that the load-on-startup values for the ActionServlet and for the ValidatorServlet are correct. Hope this help, Giustino De Vincentiis -Messaggio originale- Da: Chuck Stern [mailto:[EMAIL PROTECTED]] Inviato: martedì 5 giugno 2001 12.26 A: Struts-User Oggetto: Anyone have the Struts Validator example working? Hi, I would like to try David Winterfeldt's validator for a new project I'm working on but I can't seem to get it to work with Orion 1.51. The default welcome page comes up and I can see the validator initializing. I get the following when trying to go to the registration example page: javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.struts.util.RequestUtils.message(RequestUtils.java:292) at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239) at /registration.jsp._jspService(/registration.jsp.java:72) (JSP page line 9) at com.orionserver[Orion/1.5.1 (build 10410)].http.OrionHttpJspPage.service(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._ah._pcd(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)].server.http.JSPServlet.service(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._cob._xdd(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._cob._shc(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._iz._rzc(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._iz._ft(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._ip.run(Unknown Source) Any Ideas? Thanks, Chuck
RE: Anyone have the Struts Validator example working?
Thanks, that worked. chuck -Original Message- From: DeVincentiis Giustino [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 7:06 AM To: [EMAIL PROTECTED] Subject: RE: Anyone have the Struts Validator example working? I used the validator with Orion and had a similar behavior, the problem was in the web.xml. Check that the load-on-startup values for the ActionServlet and for the ValidatorServlet are correct. Hope this help, Giustino De Vincentiis -Messaggio originale- Da: Chuck Stern [mailto:[EMAIL PROTECTED]] Inviato: martedì 5 giugno 2001 12.26 A: Struts-User Oggetto: Anyone have the Struts Validator example working? Hi, I would like to try David Winterfeldt's validator for a new project I'm working on but I can't seem to get it to work with Orion 1.51. The default welcome page comes up and I can see the validator initializing. I get the following when trying to go to the registration example page: javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.struts.util.RequestUtils.message(RequestUtils.java:292) at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239) at /registration.jsp._jspService(/registration.jsp.java:72) (JSP page line 9) at com.orionserver[Orion/1.5.1 (build 10410)].http.OrionHttpJspPage.service(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._ah._pcd(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)].server.http.JSPServlet.service(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._cob._xdd(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._cob._shc(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._iz._rzc(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._iz._ft(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._ip.run(Unknown Source) Any Ideas? Thanks, Chuck
RE: Anyone have the Struts Validator example working?
What version are you using and what did you change to make it work. Maybe I can fix it. Does Orion only accept '1' as a valid load-on-startup value? load-on-startup2/load-on-startup David --- Chuck Stern [EMAIL PROTECTED] wrote: Thanks, that worked. chuck -Original Message- From: DeVincentiis Giustino [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 7:06 AM To: [EMAIL PROTECTED] Subject: RE: Anyone have the Struts Validator example working? I used the validator with Orion and had a similar behavior, the problem was in the web.xml. Check that the load-on-startup values for the ActionServlet and for the ValidatorServlet are correct. Hope this help, Giustino De Vincentiis -Messaggio originale- Da: Chuck Stern [mailto:[EMAIL PROTECTED]] Inviato: martedì 5 giugno 2001 12.26 A: Struts-User Oggetto: Anyone have the Struts Validator example working? Hi, I would like to try David Winterfeldt's validator for a new project I'm working on but I can't seem to get it to work with Orion 1.51. The default welcome page comes up and I can see the validator initializing. I get the following when trying to go to the registration example page: javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.struts.util.RequestUtils.message(RequestUtils.java:292) at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239) at /registration.jsp._jspService(/registration.jsp.java:72) (JSP page line 9) at com.orionserver[Orion/1.5.1 (build 10410)].http.OrionHttpJspPage.service(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._ah._pcd(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)].server.http.JSPServlet.service(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._cob._xdd(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._cob._shc(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._iz._rzc(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._iz._ft(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._ip.run(Unknown Source) Any Ideas? Thanks, Chuck __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
RE: Anyone have the Struts Validator example working?
I'm using Orion 1.5.1 and Struts_Validator-20010510.jar. It worked when I changed the load-on-startup value to 1 (or 0). A value of 2 caused the mentioned error. What was weird is that if I moved the web-app definition for the validator below the strut action servlet definition in the web.xml file I would get the following error: java.lang.NullPointerException at com.wintecinc.struts.action.ValidatorForm.validate(ValidatorForm.java:123) at org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:20 98) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509) at javax.servlet.http.HttpServlet.service(HttpServlet.java:211) at javax.servlet.http.HttpServlet.service(HttpServlet.java:309) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind[Orion/1.5.1 (build 10410)]._cob._xdd(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._cob._shc(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._iz._rzc(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._iz._ft(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._ip.run(Unknown Source) It looks different but it's really the same sore of error that struts was having, it's just not expecting null though. Chuck -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 10:34 AM To: [EMAIL PROTECTED] Subject: RE: Anyone have the Struts Validator example working? What version are you using and what did you change to make it work. Maybe I can fix it. Does Orion only accept '1' as a valid load-on-startup value? load-on-startup2/load-on-startup David --- Chuck Stern [EMAIL PROTECTED] wrote: Thanks, that worked. chuck -Original Message- From: DeVincentiis Giustino [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 7:06 AM To: [EMAIL PROTECTED] Subject: RE: Anyone have the Struts Validator example working? I used the validator with Orion and had a similar behavior, the problem was in the web.xml. Check that the load-on-startup values for the ActionServlet and for the ValidatorServlet are correct. Hope this help, Giustino De Vincentiis -Messaggio originale- Da: Chuck Stern [mailto:[EMAIL PROTECTED]] Inviato: martedl 5 giugno 2001 12.26 A: Struts-User Oggetto: Anyone have the Struts Validator example working? Hi, I would like to try David Winterfeldt's validator for a new project I'm working on but I can't seem to get it to work with Orion 1.51. The default welcome page comes up and I can see the validator initializing. I get the following when trying to go to the registration example page: javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.struts.util.RequestUtils.message(RequestUtils.java:292) at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239) at /registration.jsp._jspService(/registration.jsp.java:72) (JSP page line 9) at com.orionserver[Orion/1.5.1 (build 10410)].http.OrionHttpJspPage.service(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._ah._pcd(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)].server.http.JSPServlet.service(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._cob._xdd(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._cob._shc(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._iz._rzc(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._iz._ft(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._ip.run(Unknown Source) Any Ideas? Thanks, Chuck __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
RE: Anyone have the Struts Validator example working?
I still have the following error when I tried to access http://localhost/share/validator/registration.jsp: 500 Internal Server Error javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.struts.util.RequestUtils.message(RequestUtils.java:292) at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239) at /registration.jsp._jspService(/registration.jsp.java:72) (JSP page line 9) at com.orionserver[Orion/1.5.2 (build 10460)].http.OrionHttpJspPage.service(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.http.JSPServlet.service(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source) == My Settings are as follow: == Orion: 1.5.2 [application.xml] web-module id=validator path=../../../../dev/share/struts-validator/validator// [default-web-site.xml] web-app application=default name=validator root=/share/validator/ validator.war: extracted from validator20010510.zip this war file is extracted and put in directory ../../../../dev/share/struts-validator/validator/ modify web.xml for load-on-startup value to 1 from 2 (already tried 0 too - same error) as follows: !-- Validator Initialization Servlet Configuration -- servlet servlet-namevalidator/servlet-name servlet-classcom.wintecinc.struts.action.ValidatorServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/validation.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param load-on-startup1/load-on-startup /servlet !-- Action Servlet Configuration -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valuecom.wintecinc.struts.example.validator.ApplicationResources/pa ram-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedetail/param-name param-value2/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param load-on-startup1/load-on-startup /servlet Am I missing sth? Thanks in advance! Chris -Original Message- From: Chuck Stern [mailto:[EMAIL PROTECTED]] Sent: June 5, 2001 10:18 AM To: [EMAIL PROTECTED] Subject: RE: Anyone have the Struts Validator example working? I'm using Orion 1.5.1 and Struts_Validator-20010510.jar. It worked when I changed the load-on-startup value to 1 (or 0). A value of 2 caused the mentioned error. What was weird is that if I moved the web-app definition for the validator below the strut action servlet definition in the web.xml file I would get the following error: java.lang.NullPointerException at com.wintecinc.struts.action.ValidatorForm.validate(ValidatorForm.java:123) at org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:20 98) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509) at javax.servlet.http.HttpServlet.service(HttpServlet.java:211) at javax.servlet.http.HttpServlet.service(HttpServlet.java:309) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind[Orion/1.5.1 (build 10410)]._cob._xdd(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._cob._shc(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._iz._rzc(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._iz._ft(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._ip.run(Unknown Source) It looks different but it's really the same sore of error that struts was having, it's just not expecting null though. Chuck -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 10:34 AM To: [EMAIL PROTECTED] Subject: RE: Anyone have the Struts Validator example working? What version are you using and what did you change to make it work. Maybe I can fix it. Does Orion only accept '1' as a valid load-on-startup value? load-on-startup2/load-on-startup David --- Chuck Stern [EMAIL PROTECTED] wrote
RE: Anyone have the Struts Validator example working?
Did you try leaving your load-on-startup value set to 2 on the action servlet configuration? Chuck -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 3:32 PM To: [EMAIL PROTECTED] Subject: RE: Anyone have the Struts Validator example working? I still have the following error when I tried to access http://localhost/share/validator/registration.jsp: 500 Internal Server Error javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.struts.util.RequestUtils.message(RequestUtils.java:292) at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239) at /registration.jsp._jspService(/registration.jsp.java:72) (JSP page line 9) at com.orionserver[Orion/1.5.2 (build 10460)].http.OrionHttpJspPage.service(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.http.JSPServlet.service(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source) == My Settings are as follow: == Orion: 1.5.2 [application.xml] web-module id=validator path=../../../../dev/share/struts-validator/validator// [default-web-site.xml] web-app application=default name=validator root=/share/validator/ validator.war: extracted from validator20010510.zip this war file is extracted and put in directory ../../../../dev/share/struts-validator/validator/ modify web.xml for load-on-startup value to 1 from 2 (already tried 0 too - same error) as follows: !-- Validator Initialization Servlet Configuration -- servlet servlet-namevalidator/servlet-name servlet-classcom.wintecinc.struts.action.ValidatorServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/validation.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param load-on-startup1/load-on-startup /servlet !-- Action Servlet Configuration -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valuecom.wintecinc.struts.example.validator.ApplicationResources/pa ram-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedetail/param-name param-value2/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param load-on-startup1/load-on-startup /servlet Am I missing sth? Thanks in advance! Chris -Original Message- From: Chuck Stern [mailto:[EMAIL PROTECTED]] Sent: June 5, 2001 10:18 AM To: [EMAIL PROTECTED] Subject: RE: Anyone have the Struts Validator example working? I'm using Orion 1.5.1 and Struts_Validator-20010510.jar. It worked when I changed the load-on-startup value to 1 (or 0). A value of 2 caused the mentioned error. What was weird is that if I moved the web-app definition for the validator below the strut action servlet definition in the web.xml file I would get the following error: java.lang.NullPointerException at com.wintecinc.struts.action.ValidatorForm.validate(ValidatorForm.java:123) at org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:20 98) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509) at javax.servlet.http.HttpServlet.service(HttpServlet.java:211) at javax.servlet.http.HttpServlet.service(HttpServlet.java:309) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind[Orion/1.5.1 (build 10410)]._cob._xdd(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._cob._shc(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._iz._rzc(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._iz._ft(Unknown Source) at com.evermind[Orion/1.5.1 (build 10410)]._ip.run(Unknown Source) It looks different but it's really the same sore of error that struts was having, it's just not expecting null though. Chuck -Original Message- From: David Winterfeldt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 10:34 AM To: [EMAIL PROTECTED
RE: Anyone have the Struts Validator example working?
My findings with the following settings: == load-on-startup=0 or 1 web.xml's setting definition sequence: 1. validator servlet 2. strut action servlet == All registration example - javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE both change language example - javax.servlet.jsp.JspException: Cannot find global ActionForward for name registration == load-on-startup=0 or 1 web.xml's servlet definition sequence: 1. strut action servlet 2. validator servlet == Registration Example - input form can be displayed - error when save java.lang.NullPointerException at com.wintecinc.struts.action.ValidatorForm.validate(ValidatorForm.java:123) Registration with Javascript Validation and Server Validation - java.lang.NullPointerException at com.wintecinc.struts.taglib.html.JavascriptValidatorTag.doStartTag(Javascrip tValidatorTag.java:174) Multi-Part Registration Example with Javascript Validation and Server Validation java.lang.NullPointerException at com.wintecinc.struts.taglib.html.JavascriptValidatorTag.doStartTag(Javascrip tValidatorTag.java:174) Type Example validating some primitive numbers, a range on the integer, and a date. - input form can be displayed - error when save java.lang.NullPointerException at com.wintecinc.struts.action.ValidatorForm.validate(ValidatorForm.java:123) Both change language example - input from with correct lang. can be displayed - error when save java.lang.NullPointerException at com.wintecinc.struts.action.ValidatorForm.validate(ValidatorForm.java:123) == web.xml's servlet definition sequence: 1. validator servletwith load-on-startup = 2 2. strut action servlet with load-on-startup = 1 == Everything works Fine Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: June 5, 2001 2:32 PM To: [EMAIL PROTECTED] Subject: RE: Anyone have the Struts Validator example working? I still have the following error when I tried to access http://localhost/share/validator/registration.jsp: 500 Internal Server Error javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.struts.util.RequestUtils.message(RequestUtils.java:292) at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239) at /registration.jsp._jspService(/registration.jsp.java:72) (JSP page line 9) at com.orionserver[Orion/1.5.2 (build 10460)].http.OrionHttpJspPage.service(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.http.JSPServlet.service(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source) == My Settings are as follow: == Orion: 1.5.2 [application.xml] web-module id=validator path=../../../../dev/share/struts-validator/validator// [default-web-site.xml] web-app application=default name=validator root=/share/validator/ validator.war: extracted from validator20010510.zip this war file is extracted and put in directory ../../../../dev/share/struts-validator/validator/ modify web.xml for load-on-startup value to 1 from 2 (already tried 0 too - same error) as follows: !-- Validator Initialization Servlet Configuration -- servlet servlet-namevalidator/servlet-name servlet-classcom.wintecinc.struts.action.ValidatorServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/validation.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param load-on-startup1/load-on-startup /servlet !-- Action Servlet Configuration -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valuecom.wintecinc.struts.example.validator.ApplicationResources/pa ram-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedetail/param-name param-value2/param-value /init-param init-param
Inclusion of David Winterfeldt's Struts Validator in Struts
Hi All, Are there any plans to include an xml (or configurable) validator such as that written by David Winterfeldt within Struts ? Jon Ridgway
Re: Inclusion of David Winterfeldt's Struts Validator in Struts
As a satisfied customer, I would vote for it myself, but we're in feature freeze for 1.0, so this would come up in the 1.1 timeframe. Jon.Ridgway wrote: Hi All, Are there any plans to include an xml (or configurable) validator such as that written by David Winterfeldt within Struts ? Jon Ridgway -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 737-3463. -- http://www.husted.com/about/struts/
Making the Struts Validator work on the client side
I've finally got David Winterfeldt's Struts Validator working on the server side, but it doesn't look like it's working on the client side. So I've got a couple of questions: First, how can I be sure whether or not the validator is working on the client side? I'm assuming that, if the client side were working, my app wouldn't call the server side validator at all. Second, what am I missing? I've followed the example application (with the tweaks required to get it to work on my environment). So far, I've added the tag: validator:javascript formName="user.servlet.UserEditForm" page="1"/ and the: html:form action="/user/servlet/handleusereditform.do" onsubmit="return validateUserEditForm(this);" The JSP runs fine, but it seems to skip over the client side validation. The only thing I can think of is that my onsubmit property doesn't quite match the formName property, because I need to put some of the package name in front of the class name (that's how I entered it for the logic:xxx tags). How do I know which function to use for the onsubmit property? Is that the problem or am I missing something else? Or do I need to setup the JavascriptValidatorTag somehow? Thank you, Michael Howk
RE: Making the Struts Validator work on the client side
Micheal, Can U please tell me about the Validator Tag in struts? I don't seem to find any tag of that kind in struts. Thanks, Uday. -Original Message- From: Howk, Michael [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 8:39 AM To: Struts Mailing List (E-mail) Subject: Making the Struts Validator work on the client side I've finally got David Winterfeldt's Struts Validator working on the server side, but it doesn't look like it's working on the client side. So I've got a couple of questions: First, how can I be sure whether or not the validator is working on the client side? I'm assuming that, if the client side were working, my app wouldn't call the server side validator at all. Second, what am I missing? I've followed the example application (with the tweaks required to get it to work on my environment). So far, I've added the tag: validator:javascript formName="user.servlet.UserEditForm" page="1"/ and the: html:form action="/user/servlet/handleusereditform.do" onsubmit="return validateUserEditForm(this);" The JSP runs fine, but it seems to skip over the client side validation. The only thing I can think of is that my onsubmit property doesn't quite match the formName property, because I need to put some of the package name in front of the class name (that's how I entered it for the logic:xxx tags). How do I know which function to use for the onsubmit property? Is that the problem or am I missing something else? Or do I need to setup the JavascriptValidatorTag somehow? Thank you, Michael Howk