Any Takers ?RE: Struts Validator and Select boxes
Any help/takers ? -Original Message- From: Janarthan Sathiamurthy Sent: Thursday, March 25, 2004 10:16 PM To: [EMAIL PROTECTED] Subject: Struts Validator and Select boxes Hi, I am using Struts validator. One page of mine has dates displayed as MM DD . All the above 3 are displayed in seprate combo/select boxes. I need to do some custom validations on these fields. I wrote a custom class for the same Looks like - public static boolean validateDates(Object bean, ValidatorAction validatorAction, Field field, ActionErrors errors, HttpServletRequest request) { String actionType = ValidatorUtil.getValueAsString(bean, field.getVarValue(actionType)); // A hidden form field String fromMonth = ValidatorUtil.getValueAsString(bean, field.getProperty()); String fromDay = ValidatorUtil.getValueAsString(bean, field.getVarValue(fromDay)); String fromYear = ValidatorUtil.getValueAsString(bean, field.getVarValue(fromYear)); String toMonth = ValidatorUtil.getValueAsString(bean, field.getVarValue(toMonth)); String toDay = ValidatorUtil.getValueAsString(bean, field.getVarValue(toDay)); String toYear = ValidatorUtil.getValueAsString(bean, field.getVarValue(toYear)); System.out.println(actionType + actionType); System.out.println(fromMonth + fromMonth); System.out.println(fromDay + fromDay); System.out.println(fromYear + fromYear); System.out.println(toMonth + toMonth); System.out.println(toDay + toDay); System.out.println(toYear + toYear); return true; } O/P of the above code - actionType searchPage fromMonth 2 fromDay null fromYear null toMonth null toDay null toYear null It also gives me No Name Specified error. Point to note is that the all other fields other than 'actionType' are select boxes. It gives a null for all the field types that are of html:select. Is this a known BUG or am i going wrong somewhere ? Error LOG - Mar 25, 2004 9:53:11 PM org.apache.commons.validator.ValidatorUtil getValueAsString SEVERE: No name specified java.lang.IllegalArgumentException: No name specified at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:721) at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:801) at org.apache.commons.validator.ValidatorUtil.getValueAsString(ValidatorUtil.java:121) at com.mot.servicetools.util.OCSReportsDateValidator.validateDates(OCSReportsDateValidator.j ava:55) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.validator.Validator.validateFieldForRule(Validator.java:454) at org.apache.commons.validator.Validator.validateField(Validator.java:544) at org.apache.commons.validator.Validator.validate(Validator.java:582) at org.apache.struts.validator.DynaValidatorActionForm.validate(DynaValidatorActionForm.java :125) at org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:942) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:255) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.jav a:1053) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletC ontext.java:6310) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:36 22) at
Re: Struts Validator and Select boxes
Posting whats in your validation.xml for the form and the bit of your jsp with your select fields would be helpfull. If you take the fromDay as an example, you are using field.getVarValue(fromDay) - if you don't have a var defined in your validation.xml for fromDay then that would cause the No Name Specified error - same goes for fromYear, toMonth, toDay and toYear. As for getting nulls, looks to me again that whats specified for the vars in your validation.xml doesn't tie up with the names specified on your form. From your code I would expect something like the following in your validation.xml form. field varvar-namefromDay/var-name var-valueformFromDay/var-value /var varvar-namefromYear/var-name var-valueformFromYear/var-value /var varvar-nametoMonth/var-name var-valueformToMonth/var-value /var varvar-nametoDay/var-name var-valueformToDay/var-value /var varvar-nametoYear/var-name var-valueformToYear/var-value /var /field /form Do you have the properties in your form correct (i.e in this example formFromDay, formFromYear, formToMonth, formToDay, formToYear). Niall - Original Message - From: Janarthan Sathiamurthy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:46 PM Subject: Struts Validator and Select boxes Hi, I am using Struts validator. One page of mine has dates displayed as MM DD . All the above 3 are displayed in seprate combo/select boxes. I need to do some custom validations on these fields. I wrote a custom class for the same Looks like - public static boolean validateDates(Object bean, ValidatorAction validatorAction, Field field, ActionErrors errors, HttpServletRequest request) { String actionType = ValidatorUtil.getValueAsString(bean, field.getVarValue(actionType)); // A hidden form field String fromMonth = ValidatorUtil.getValueAsString(bean, field.getProperty()); String fromDay = ValidatorUtil.getValueAsString(bean, field.getVarValue(fromDay)); String fromYear = ValidatorUtil.getValueAsString(bean, field.getVarValue(fromYear)); String toMonth = ValidatorUtil.getValueAsString(bean, field.getVarValue(toMonth)); String toDay = ValidatorUtil.getValueAsString(bean, field.getVarValue(toDay)); String toYear = ValidatorUtil.getValueAsString(bean, field.getVarValue(toYear)); System.out.println(actionType + actionType); System.out.println(fromMonth + fromMonth); System.out.println(fromDay + fromDay); System.out.println(fromYear + fromYear); System.out.println(toMonth + toMonth); System.out.println(toDay + toDay); System.out.println(toYear + toYear); return true; } O/P of the above code - actionType searchPage fromMonth 2 fromDay null fromYear null toMonth null toDay null toYear null It also gives me No Name Specified error. Point to note is that the all other fields other than 'actionType' are select boxes. It gives a null for all the field types that are of html:select. Is this a known BUG or am i going wrong somewhere ? Error LOG - Mar 25, 2004 9:53:11 PM org.apache.commons.validator.ValidatorUtil getValueAsString SEVERE: No name specified java.lang.IllegalArgumentException: No name specified at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.j ava:721) at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:80 1) at org.apache.commons.validator.ValidatorUtil.getValueAsString(ValidatorUtil.ja va:121) at com.mot.servicetools.util.OCSReportsDateValidator.validateDates(OCSReportsDa teValidator.j ava:55) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.validator.Validator.validateFieldForRule(Validator.java:4 54) at org.apache.commons.validator.Validator.validateField(Validator.java:544) at org.apache.commons.validator.Validator.validate(Validator.java:582) at org.apache.struts.validator.DynaValidatorActionForm.validate(DynaValidatorAc tionForm.java :125) at org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.j ava:942) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:255) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at
RE: Struts Validator and Select boxes
Hi Niall, I am attaching the validation.xml and the jsp that i have used. I have done the exact thing that you had specified earlier before posting to the mailing list. I am not clear where i am going wrong. The Struts-config entry goes like - form-bean name=ocsReportForm type=org.apache.struts.validator.DynaValidatorActionForm form-property name=monthFrom type=java.lang.String / form-property name=dayFrom type=java.lang.String / form-property name=yearFrom type=java.lang.String / form-property name=monthTo type=java.lang.String / form-property name=dayTo type=java.lang.String / form-property name=yearTo type=java.lang.String / form-property name=actionType type=java.lang.String / form-property name=pageNumber type=java.lang.String / form-property name=numberOfRows type=java.lang.String / form-property name=dateFrom type=java.lang.String / form-property name=dateTo type=java.lang.String / /form-bean Regards, Janarthan S -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 8:55 PM To: Struts Users Mailing List Subject: Re: Struts Validator and Select boxes Posting whats in your validation.xml for the form and the bit of your jsp with your select fields would be helpfull. If you take the fromDay as an example, you are using field.getVarValue(fromDay) - if you don't have a var defined in your validation.xml for fromDay then that would cause the No Name Specified error - same goes for fromYear, toMonth, toDay and toYear. As for getting nulls, looks to me again that whats specified for the vars in your validation.xml doesn't tie up with the names specified on your form. From your code I would expect something like the following in your validation.xml form. field varvar-namefromDay/var-name var-valueformFromDay/var-value /var varvar-namefromYear/var-name var-valueformFromYear/var-value /var varvar-nametoMonth/var-name var-valueformToMonth/var-value /var varvar-nametoDay/var-name var-valueformToDay/var-value /var varvar-nametoYear/var-name var-valueformToYear/var-value /var /field /form Do you have the properties in your form correct (i.e in this example formFromDay, formFromYear, formToMonth, formToDay, formToYear). Niall - Original Message - From: Janarthan Sathiamurthy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 25, 2004 4:46 PM Subject: Struts Validator and Select boxes Hi, I am using Struts validator. One page of mine has dates displayed as MM DD . All the above 3 are displayed in seprate combo/select boxes. I need to do some custom validations on these fields. I wrote a custom class for the same Looks like - public static boolean validateDates(Object bean, ValidatorAction validatorAction, Field field, ActionErrors errors, HttpServletRequest request) { String actionType = ValidatorUtil.getValueAsString(bean, field.getVarValue(actionType)); // A hidden form field String fromMonth = ValidatorUtil.getValueAsString(bean, field.getProperty()); String fromDay = ValidatorUtil.getValueAsString(bean, field.getVarValue(fromDay)); String fromYear = ValidatorUtil.getValueAsString(bean, field.getVarValue(fromYear)); String toMonth = ValidatorUtil.getValueAsString(bean, field.getVarValue(toMonth)); String toDay = ValidatorUtil.getValueAsString(bean, field.getVarValue(toDay)); String toYear = ValidatorUtil.getValueAsString(bean, field.getVarValue(toYear)); System.out.println(actionType + actionType); System.out.println(fromMonth + fromMonth); System.out.println(fromDay + fromDay); System.out.println(fromYear + fromYear); System.out.println(toMonth + toMonth); System.out.println(toDay + toDay); System.out.println(toYear + toYear); return true; } O/P of the above code - actionType searchPage fromMonth 2 fromDay null fromYear null toMonth null toDay null toYear null It also gives me No Name Specified error. Point to note is that the all other fields other than 'actionType' are select boxes. It gives a null for all the field types that are of html:select. Is this a known BUG or am i going wrong somewhere ? Error LOG - Mar 25, 2004 9:53:11 PM org.apache.commons.validator.ValidatorUtil getValueAsString SEVERE: No name specified java.lang.IllegalArgumentException: No name specified
Re: Struts Validator
Whats missing from your question is how are you identifying which client a user belongs to? Niall - Original Message - From: Matthew Clark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 22, 2004 12:09 PM Subject: Struts Validator Hi there, I am new to Struts and this mailing list but by no means new to Java. I have been reading the Struts in Action book and taken a quick look at the API etc and have a simple question regarding the Validator in my environment. We are an Application Service Provider and serve well over 1000 clients (who in turn each have between 5 and 1000 end users using the system). Although each client uses the same core application, they can have very different views of data and input forms and may have very different validation requirements. Is it possible to specify validation config at runtime when using the struts validator? So each of our clients could have a configuration file that specified which validation XML file to use for a given input form? We could use a different form for each user but that would be inefficient and a maintenance nightmare.. I want to call the same form/servlet but have it display a different look feel and have different validation rules client side and server side. At the moment, the validation is very much tied to the presentation layer and I want to decouple it. This is really the last obstacle standing in the way of our migration to a pure java solution using Struts.. The use of the validator would simplify our solution a great deal and I will also be looking into the possibility of our clients creating their own validation configuration files (using a web interface of some sort) any help or advice would be appreciated. Regards, Matthew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts validator Regular Expressions
don't quote me but the javadocs for jakarta's regular expression's RE class are ok. Also I believe everything is based on jakarta's oro. sandeep -Original Message- From: Joao Batistella [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 1:33 PM To: 'Struts Users Mailing List' Subject: Struts validator Regular Expressions Hello! Do you know any document where can I learn how to build regular expressions for Struts Validator? I need to validate an IP address and I don't know how is the syntax in the validator config file. Thanks, JP - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts validator Regular Expressions
Hi, this should be very close to \d{1,3}[.]\d{1,3}[.]\d{1,3}[.]\d{1,3} I need to validate an IP address and I don't know how is the syntax in the validator config file. take your time to study this: http://java.sun.com/docs/books/tutorial/extra/regex/ It's worth the trouble, regex rox ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts validator Regular Expressions
Validator does use ORO - There is an applet you can play with to test your regexp: http://jakarta.apache.org/oro/demo.html Choose the contains option and start/end your regular expressions with ^ and $ Niall - Original Message - From: Takhar, Sandeep [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 6:52 PM Subject: RE: Struts validator Regular Expressions don't quote me but the javadocs for jakarta's regular expression's RE class are ok. Also I believe everything is based on jakarta's oro. sandeep -Original Message- From: Joao Batistella [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 1:33 PM To: 'Struts Users Mailing List' Subject: Struts validator Regular Expressions Hello! Do you know any document where can I learn how to build regular expressions for Struts Validator? I need to validate an IP address and I don't know how is the syntax in the validator config file. Thanks, JP - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts validator Regular Expressions
Hi, This is a good one to get started - http://weblogtoolscollection.com/regex/regex.php Best Regards, Janarthan S -Original Message- From: Joao Batistella [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 12:03 AM To: 'Struts Users Mailing List' Subject: Struts validator Regular Expressions Hello! Do you know any document where can I learn how to build regular expressions for Struts Validator? I need to validate an IP address and I don't know how is the syntax in the validator config file. Thanks, JP - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator prints all javascript functions
Hi Guys ! Does anyone think that this could be happening because I am using Tiles ? Kunal -Original Message- From: Kunal H. Parikh [mailto:[EMAIL PROTECTED] Sent: Monday, 15 March 2004 10:12 To: 'Struts Users Mailing List' Subject: RE: Struts Validator prints all javascript functions I thought so too! My struts-config.xml reads as follows == ... form-bean name=vehicleEnquiry type=org.apache.struts.validator.DynaValidatorActionForm form-property name=vehicleId type=java.lang.Integer / form-property name=fullName type=java.lang.String / /form-bean ... = Do you think DynaValidatorActionForm could be creating the problem ? Kunal -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marino A. Jonsson Sent: Monday, 15 March 2004 10:07 To: [EMAIL PROTECTED] Subject: Re: Struts Validator prints all javascript functions hmm ... that's not my experience - the dynamic parts are rendered as they should, but all the static javascript is then rendered too (instead of just the relevant static methods). I haven't tested 1.2 though. Marino Joe Germuska [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] At 8:55 AM +1100 3/15/04, Kunal H. Parikh wrote: Hi All! I am attempting to use Struts Validator. All works well, but I am only using the required validation in my code. However, the JavaScript that gets generated, include other functions like checkEmail, minLength, etc. etc. Is this expected behaviour? This is what happens when the formName you specify in the html:javascript tag is not found by the validator. Since Struts 1.2.0 (and a little before in the nightlies, of course), this condition causes a JSPException to be thrown instead. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Validator prints all javascript functions
Hi Kunal, I do not use Tiles nor the DynaValidator but I get the same in a certain Form. I use Struts 1.1 Theo - Original Message - From: Kunal H. Parikh [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, March 15, 2004 9:38 PM Subject: RE: Struts Validator prints all javascript functions Hi Guys ! Does anyone think that this could be happening because I am using Tiles ? Kunal -Original Message- From: Kunal H. Parikh [mailto:[EMAIL PROTECTED] Sent: Monday, 15 March 2004 10:12 To: 'Struts Users Mailing List' Subject: RE: Struts Validator prints all javascript functions I thought so too! My struts-config.xml reads as follows == .. form-bean name=vehicleEnquiry type=org.apache.struts.validator.DynaValidatorActionForm form-property name=vehicleId type=java.lang.Integer / form-property name=fullName type=java.lang.String / /form-bean .. = Do you think DynaValidatorActionForm could be creating the problem ? Kunal -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marino A. Jonsson Sent: Monday, 15 March 2004 10:07 To: [EMAIL PROTECTED] Subject: Re: Struts Validator prints all javascript functions hmm ... that's not my experience - the dynamic parts are rendered as they should, but all the static javascript is then rendered too (instead of just the relevant static methods). I haven't tested 1.2 though. Marino Joe Germuska [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] At 8:55 AM +1100 3/15/04, Kunal H. Parikh wrote: Hi All! I am attempting to use Struts Validator. All works well, but I am only using the required validation in my code. However, the JavaScript that gets generated, include other functions like checkEmail, minLength, etc. etc. Is this expected behaviour? This is what happens when the formName you specify in the html:javascript tag is not found by the validator. Since Struts 1.2.0 (and a little before in the nightlies, of course), this condition causes a JSPException to be thrown instead. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Validator prints all javascript functions
At 8:55 AM +1100 3/15/04, Kunal H. Parikh wrote: Hi All! I am attempting to use Struts Validator. All works well, but I am only using the required validation in my code. However, the JavaScript that gets generated, include other functions like checkEmail, minLength, etc. etc. Is this expected behaviour? This is what happens when the formName you specify in the html:javascript tag is not found by the validator. Since Struts 1.2.0 (and a little before in the nightlies, of course), this condition causes a JSPException to be thrown instead. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Validator prints all javascript functions
hmm ... that's not my experience - the dynamic parts are rendered as they should, but all the static javascript is then rendered too (instead of just the relevant static methods). I haven't tested 1.2 though. Marino Joe Germuska [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] At 8:55 AM +1100 3/15/04, Kunal H. Parikh wrote: Hi All! I am attempting to use Struts Validator. All works well, but I am only using the required validation in my code. However, the JavaScript that gets generated, include other functions like checkEmail, minLength, etc. etc. Is this expected behaviour? This is what happens when the formName you specify in the html:javascript tag is not found by the validator. Since Struts 1.2.0 (and a little before in the nightlies, of course), this condition causes a JSPException to be thrown instead. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator prints all javascript functions
I thought so too! My struts-config.xml reads as follows == ... form-bean name=vehicleEnquiry type=org.apache.struts.validator.DynaValidatorActionForm form-property name=vehicleId type=java.lang.Integer / form-property name=fullName type=java.lang.String / /form-bean ... = Do you think DynaValidatorActionForm could be creating the problem ? Kunal -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Marino A. Jonsson Sent: Monday, 15 March 2004 10:07 To: [EMAIL PROTECTED] Subject: Re: Struts Validator prints all javascript functions hmm ... that's not my experience - the dynamic parts are rendered as they should, but all the static javascript is then rendered too (instead of just the relevant static methods). I haven't tested 1.2 though. Marino Joe Germuska [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] At 8:55 AM +1100 3/15/04, Kunal H. Parikh wrote: Hi All! I am attempting to use Struts Validator. All works well, but I am only using the required validation in my code. However, the JavaScript that gets generated, include other functions like checkEmail, minLength, etc. etc. Is this expected behaviour? This is what happens when the formName you specify in the html:javascript tag is not found by the validator. Since Struts 1.2.0 (and a little before in the nightlies, of course), this condition causes a JSPException to be thrown instead. Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Validator
They are in two places, the struts specific validator files are in the struts.jar - but validator is a commons component and its class files are in commons-validator.jar. Everything is shipped with the struts binary - look in the lib folder. - Original Message - From: Ramachandran [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 08, 2004 9:43 AM Subject: Struts Validator Can any one please send me the URL of where struts validator files are. I want to use the validator in my project. So i am in the need pf such class files... Thanx, Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator overriding cache-control?
Just to follow up with a few questions, based on the following statement: It is my assumption in this scenario that the browser (IE) has cached the URL and data posted to said URL, thus it is able to redisplay the page with the data the user has entered. 1. Is this a correct assumption? 2. If yes, is this the expected behaviour of a browser for pages that are marked as do not cache? 3. If yes, is there any known mechanism to force the browser to not cache the POST data? Cheers, James THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: 2004 January 14 21.57 To: Struts Users Mailing List Subject: Re: Struts Validator overriding cache-control? The sequence you described is the expected behavior. Comments below. --- Brown, James [EMAIL PROTECTED] wrote: We have encountered a situation wherein it appears that the server-side validation provided by the struts-validator and that of ValidatorForm.validate(...) appears to be overriding the controller's nocache value. The scenario we have encountered is follows: 1. user enters data on a page that is backed by a subclass of ValidatorForm 2. form is submitted but one of either server-side validation for a required field (set via the struts validator plugin) or the ValidatorForm.validate(...) method returns and ActionError. My guess is the form was submitted using METHOD=POST. 3. the page is redisplayed with the appropriate error message(s). This page is the result of a submitted form. 4. the user corrects the form and submits. 5. the subsequent (success) page is displayed. 6. the user selects the browser's back button and receives the IE Warning: Page has Expired warning/error. When the user selects the back button, he is trying to redisplay the page shown in step 3, which can only be displayed by resubmitting the form. IE will not resubmit a form without informing the user, and therefore shows this warning to tell the user. 7. the user refreshes the page via the F5 key or the refresh button, and the page as displayed in step 3 is redisplayed. This is expected because the form that was submitted in step 2 was resubmitted by IE to display the page requested by the user. Our controller is set to not cache any pages via: controller set-property property=nocache value=true/ /controller The ValidatorForm/ActionForm's scope is also set to request, thus the page should be displayed empty. This situation only occurs if the form is submitted with data that fails server-side validation and the page is redisplayed. In a true success path, the page is displayed as desired - empty. Any ideas? Your user tried to redisplay the result of an errant form, and so WILL get the page with the error message. If you want to display an empty form, perhaps to allow the user to enter another set of data, you can provide a link which the user can follow for a fresh form, or display the form in step 5 along with your success message. Cheers, James __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Validator overriding cache-control?
The sequence you described is the expected behavior. Comments below. --- Brown, James [EMAIL PROTECTED] wrote: We have encountered a situation wherein it appears that the server-side validation provided by the struts-validator and that of ValidatorForm.validate(...) appears to be overriding the controller's nocache value. The scenario we have encountered is follows: 1. user enters data on a page that is backed by a subclass of ValidatorForm 2. form is submitted but one of either server-side validation for a required field (set via the struts validator plugin) or the ValidatorForm.validate(...) method returns and ActionError. My guess is the form was submitted using METHOD=POST. 3. the page is redisplayed with the appropriate error message(s). This page is the result of a submitted form. 4. the user corrects the form and submits. 5. the subsequent (success) page is displayed. 6. the user selects the browser's back button and receives the IE Warning: Page has Expired warning/error. When the user selects the back button, he is trying to redisplay the page shown in step 3, which can only be displayed by resubmitting the form. IE will not resubmit a form without informing the user, and therefore shows this warning to tell the user. 7. the user refreshes the page via the F5 key or the refresh button, and the page as displayed in step 3 is redisplayed. This is expected because the form that was submitted in step 2 was resubmitted by IE to display the page requested by the user. Our controller is set to not cache any pages via: controller set-property property=nocache value=true/ /controller The ValidatorForm/ActionForm's scope is also set to request, thus the page should be displayed empty. This situation only occurs if the form is submitted with data that fails server-side validation and the page is redisplayed. In a true success path, the page is displayed as desired - empty. Any ideas? Your user tried to redisplay the result of an errant form, and so WILL get the page with the error message. If you want to display an empty form, perhaps to allow the user to enter another set of data, you can provide a link which the user can follow for a fresh form, or display the form in step 5 along with your success message. Cheers, James __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator overriding cache-control?
Thanks. I was confused by the fact that the behaviour is different if the page is submitted without error. In the without-error scenario, the re-post as the result of the refresh does not contain the form values that would logically be contained in the with-error scenario. Now, I just need to work myself out of the corner I am in - I need to prevent the refresh from redisplaying this data which I think is darn near imposibble. Cheers, James THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: 2004 January 14 21.57 To: Struts Users Mailing List Subject: Re: Struts Validator overriding cache-control? The sequence you described is the expected behavior. Comments below. --- Brown, James [EMAIL PROTECTED] wrote: We have encountered a situation wherein it appears that the server-side validation provided by the struts-validator and that of ValidatorForm.validate(...) appears to be overriding the controller's nocache value. The scenario we have encountered is follows: 1. user enters data on a page that is backed by a subclass of ValidatorForm 2. form is submitted but one of either server-side validation for a required field (set via the struts validator plugin) or the ValidatorForm.validate(...) method returns and ActionError. My guess is the form was submitted using METHOD=POST. 3. the page is redisplayed with the appropriate error message(s). This page is the result of a submitted form. 4. the user corrects the form and submits. 5. the subsequent (success) page is displayed. 6. the user selects the browser's back button and receives the IE Warning: Page has Expired warning/error. When the user selects the back button, he is trying to redisplay the page shown in step 3, which can only be displayed by resubmitting the form. IE will not resubmit a form without informing the user, and therefore shows this warning to tell the user. 7. the user refreshes the page via the F5 key or the refresh button, and the page as displayed in step 3 is redisplayed. This is expected because the form that was submitted in step 2 was resubmitted by IE to display the page requested by the user. Our controller is set to not cache any pages via: controller set-property property=nocache value=true/ /controller The ValidatorForm/ActionForm's scope is also set to request, thus the page should be displayed empty. This situation only occurs if the form is submitted with data that fails server-side validation and the page is redisplayed. In a true success path, the page is displayed as desired - empty. Any ideas? Your user tried to redisplay the result of an errant form, and so WILL get the page with the error message. If you want to display an empty form, perhaps to allow the user to enter another set of data, you can provide a link which the user can follow for a fresh form, or display the form in step 5 along with your success message. Cheers, James __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts validator framework
ValidatorForm and ValidatorActionForm should be subclassed if you are not using dynamica forms and you want to leverage the Struts Validation framework. robert -Original Message- From: Jan Dirksen [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 11:51 AM To: [EMAIL PROTECTED] Subject: struts validator framework hi, just a question about using the validator-fw. i want to describe a formbean in struts-config incl. its proberties. like: formBeans name=logon type=??? form-property name=user type=java.lang.String/ form-property name=password type=java.lang.String/ /form-bean for validation i want to use the framework i guess: -DynaValidatorForm: validation rules are executed based on form name -DynaValidatorActionForm: validation rules are executed based on action mapping and what are the classes: ValidatorForm ValidatorActionForm for? thanks jan __ Gesendet von Yahoo! Mail - http://mail.yahoo.de Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts validator framework
BDY.RTF Description: RTF file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts validator with Date property ???
Change the type of date type to java.sql.Date you won't get that exception. This is because the Beanutils which they use to copy the data form request to form is not having a corresponding converter to convert to java.util.Date but it has a converter to convert to sql date Thanks Karuna -Original Message- From: Mauricio T. Ferraz [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2003 1:10 PM To: Struts Users Mailing List Subject: Struts validator with Date property ??? In my Form a hava a property java.util.Date, I can use the validator Struts? Or I just can have properties Strings ??? in my textfiels on form??? In the Struts' webapps has a example, the use only String to input of data... I got java.lang.IllegalArgumentException: argument type mismatch Thanks, for help. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts-Validator Websphere
BDY.RTF Description: RTF file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator question
Two questions immediately come to mind from what you documented: 1. Does com.hp.ipg.ne.pgpm.forms.orgForm extend org.apache.struts.validator.ValidatorForm or org.apache.struts.validator.ValidatorActionForm 2. The 'input=org_edit.jsp is context sensitive. Can you reach org_edit.jsp from the same level as your /org_insert.do action? *** This sounds like the problem since you wrote you're seeing a blank html page, as if it cannot find the JSP page. Regards, David -Original Message- From: LACKEY,DAVID (HP-PaloAlto,ex1) [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 1:58 AM To: Struts Users Mailing List Subject: Struts Validator question All, I posted this a few hours ago on the jakarta-commons list and have not come up with a solution yet. I decided to commit the sin of x-posting it here since this may very well be a struts issue. I hope this is not a newbie question. I have RTFM several times. I suspect I must be missing something simple. I have installed Tomcat 4.1.29 and Struts 1.1 with the Validator included. I have configured my installation as follows struts-config.xml: form-bean name=orgForm type=com.hp.ipg.ne.pgpm.forms.orgForm/ . . . !-- Insert a new Org into the database -- action path=/org_insert name=orgForm type=com.hp.ipg.ne.pgpm.actions.orgInsertAction scope=request validate=true input=org_edit.jsp forward name=show_list path=/org_list.do / forward name=error path=/GeneralError.do / /action . . . message-resources parameter=com.hp.ipg.ne.pgpm.application/ . . . plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml/ /plug-in Validation.xml: form-validation formset form name=orgForm field property=orgCode depends=required arg0 key=orgForm.OrgCode/ /field /form /formset /form-validation Application:properties: errors.required={0} is required. In the org_edit.jsp file contains the following code snippet: logic:messagesPresent bean:message key=errors.header/ ul html:messages id=error libean:write name=error//li /html:messages /ulhr /logic:messagesPresent I have stepped through the execution several times and see the validator being activated. I even see the failed validation (empty field). However, after the failed validation, it seems validator is unable to construct a proper forward to send me back to the JSP page where the error was entered (or not entered in this case). I am simply forwarded to a nearly blank page with minimal html and body tags. I have tried changing the input parameter to point at a global local forward as well as an Action forward. None of them succeed. However, when pointed at a forward the browser does display a message indicating that the server was unable to look up a mapping for an action named /misc. The characters misc do not appear anywhere in my struts-config.xml file. I am guessing this must be some kind of default behavior. Any thoughts would be appreciated. David Lackey [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator question
Answer to Question 1: public final class orgForm extends ValidatorForm Answer to Question 2: I have double checked the case and spelling of the file name. Both the action and org_edit.jsp can be reached in the same directory. I assume the question you are posing has to do with the URL used to access either. Both can be reached in the http://localhost:8080/app_root directory. I have looked at this too long so I may not be seeing something but I did go through the exercise validating each of the configuration items against a couple of struts books and the Validator document on the Struts site. Its late and I know I must be staring at the issue and just not realizing it. David -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Sunday, November 23, 2003 11:09 PM To: Struts Users Mailing List Subject: RE: Struts Validator question Two questions immediately come to mind from what you documented: 1. Does com.hp.ipg.ne.pgpm.forms.orgForm extend org.apache.struts.validator.ValidatorForm or org.apache.struts.validator.ValidatorActionForm 2. The 'input=org_edit.jsp is context sensitive. Can you reach org_edit.jsp from the same level as your /org_insert.do action? *** This sounds like the problem since you wrote you're seeing a blank html page, as if it cannot find the JSP page. Regards, David -Original Message- From: LACKEY,DAVID (HP-PaloAlto,ex1) [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 1:58 AM To: Struts Users Mailing List Subject: Struts Validator question All, I posted this a few hours ago on the jakarta-commons list and have not come up with a solution yet. I decided to commit the sin of x-posting it here since this may very well be a struts issue. I hope this is not a newbie question. I have RTFM several times. I suspect I must be missing something simple. I have installed Tomcat 4.1.29 and Struts 1.1 with the Validator included. I have configured my installation as follows struts-config.xml: form-beanname=orgForm type=com.hp.ipg.ne.pgpm.forms.orgForm/ . . . !-- Insert a new Org into the database -- action path=/org_insert name=orgForm type=com.hp.ipg.ne.pgpm.actions.orgInsertAction scope=request validate=true input=org_edit.jsp forward name=show_list path=/org_list.do / forward name=error path=/GeneralError.do / /action . . . message-resources parameter=com.hp.ipg.ne.pgpm.application/ . . . plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml/ /plug-in Validation.xml: form-validation formset form name=orgForm field property=orgCode depends=required arg0 key=orgForm.OrgCode/ /field /form /formset /form-validation Application:properties: errors.required={0} is required. In the org_edit.jsp file contains the following code snippet: logic:messagesPresent bean:message key=errors.header/ ul html:messages id=error libean:write name=error//li /html:messages /ulhr /logic:messagesPresent I have stepped through the execution several times and see the validator being activated. I even see the failed validation (empty field). However, after the failed validation, it seems validator is unable to construct a proper forward to send me back to the JSP page where the error was entered (or not entered in this case). I am simply forwarded to a nearly blank page with minimal html and body tags. I have tried changing the input parameter to point at a global local forward as well as an Action forward. None of them succeed. However, when pointed at a forward the browser does display a message indicating that the server was unable to look up a mapping for an action named /misc. The characters misc do not appear anywhere in my struts-config.xml file. I am guessing this must be some kind of default behavior. Any thoughts would be appreciated. David Lackey [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Validator with Indexed Properties
Hi Frederic, I thing in validation.xml u must provide your setting as field property=orderNumber indexedListProperty=parameter depends=required,integer,positive arg0 key=rubis.strategy.label/ /field You have specified it as indexedListProperty=parameters Plz Verify your validation.xml. -Vijay Frederic Dernbach wrote: I would like to know how to use the Struts Validator with indexed properties. I cannot display error messages under the field (but the validator obviously works and performs validation). Below is the relevant parts of my JSP and of my valdiation.xml file : Upon submission of the JSP's form, I can see the validator does not validate the 'orderNumber' property if it is empty. But no error messages is displayed. Can an error message be displayed under the input field if the property being validated is indexed ? Fred JSP table th align=center bean:message key=rubis.strategy.parameters.orderNumber/ /th .../... logic:iterate name=strategyForm property=parameters id=parameter type=com.rubis.web.system.bean.ParamInterfaceElementBean tr td align=center html:text name=parameter property=orderNumber indexed=true/ /td .../... /tr /logic:iterate /table validation.xml field property=orderNumber indexedListProperty=parameters depends=required,integer,positive arg0 key=rubis.strategy.label/ /field - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with [EMAIL PROTECTED] http://shopnow.netscape.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Validator with Indexed Properties
Vijay, Thanks for your answer. I tried what you suggested, with no success. I get an exception saying that the getter method is not found : java.lang.NoSuchMethodException: Property 'parameter' has no getter method at org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtils.java:1180) at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:772) at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:801) at org.apache.commons.validator.Validator.validateField(Validator.java:487) at org.apache.commons.validator.Validator.validate(Validator.java:582) at org.apache.struts.validator.ValidatorActionForm.validate(ValidatorActionForm.java:121) at com.rubis.web.system.action.SubmitStrategyAction.save(SubmitStrategyAction.java:71) Here are the getter/setter methods of the form : private LinkedList parameters; public LinkedList getParameters() { return parameters; } public void setParameters(LinkedList parameters) { this.parameters = parameters; } public ParamInterfaceElementBean getParameter(int index) { while( index = parameters.size() ){ parameters.add(new ParamInterfaceElementBean()); } return (ParamInterfaceElementBean) parameters.get(index); } public void setParameter(int index, ParamInterfaceElementBean parameter) { while ( index = parameters.size() ){ parameters.add(new ParamInterfaceElementBean()); } parameters.set(index, parameter); } Do you have a clue about what I'm doing wirng ? Fred Le lun 03/11/2003 13:25, Vijaykumar a crit : Hi Frederic, I thing in validation.xml u must provide your setting as field property=orderNumber indexedListProperty=parameter depends=required,integer,positive arg0 key=rubis.strategy.label/ /field You have specified it as indexedListProperty=parameters Plz Verify your validation.xml. -Vijay Frederic Dernbach wrote: I would like to know how to use the Struts Validator with indexed properties. I cannot display error messages under the field (but the validator obviously works and performs validation). Below is the relevant parts of my JSP and of my valdiation.xml file : Upon submission of the JSP's form, I can see the validator does not validate the 'orderNumber' property if it is empty. But no error messages is displayed. Can an error message be displayed under the input field if the property being validated is indexed ? Fred JSP table th align=center bean:message key=rubis.strategy.parameters.orderNumber/ /th .../... logic:iterate name=strategyForm property=parameters id=parameter type=com.rubis.web.system.bean.ParamInterfaceElementBean tr td align=center html:text name=parameter property=orderNumber indexed=true/ /td .../... /tr /logic:iterate /table validation.xml field property=orderNumber indexedListProperty=parameters depends=required,integer,positive arg0 key=rubis.strategy.label/ /field - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with [EMAIL PROTECTED] http://shopnow.netscape.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Validator and Hidden Field
Octavia, I bit of a guess on my part, but it sounds like you want to use the requiredif validator. This allows a particular field to be required (or not) based on other fields. The fact that this might be a hidden field should be, as pointed out by others, transparent to the validator. However, also pointed out is the most troubling question: if it is on a hidden field and your validation fails, what can your users possibly ever do to correct the situation? Octavia Yung wrote: Thanks for the responses, David and Wendy. In order to determine if a particular form field is required, I need to determine the property of another field. Therefore, I thought it would be best to hold this other property in a hidden field. I have tried to validate it as any other input field, but have not had any luck. Any suggestions/ideas? Thanks much! - Original Message - From: Wendy Smoak [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, August 28, 2003 3:36 PM Subject: RE: Struts Validator and Hidden Field I was wondering if it is possible to validate a hidden field using the Struts Validator framework. If so, an example would be extremely helpful. Validator is a separate project in the Jakarta Commons, it's not part of Struts proper. Sure you could validate a hidden field, but what's the poor user supposed to do when you toss back an error that such-and-such field is required? He can't DO anything about it, the field is hidden! (Unless perhaps there's client side scripting setting a value when he fills in a visible field?) I don't see it as any different than validating a text box, did you try it and it didn't work? By the time the request gets turned into a Form bean, Struts doesn't know or care that the field was hidden on the HTML form it came from. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University, PA, IRM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator and Hidden Field
Octavia wrote: I have tried to validate it as any other input field, but have not had any luck. Any suggestions/ideas? Thanks much! You'll have to post some of your code before anyone will have any idea why it's not working. The Validator also logs copious amounts of info, you should be able to tell if your rule is getting picked up from the XML file by looking in the logs. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University, PA, IRM
Re: Struts Validator and Hidden Field
As far as I was aware validating a hidden field is the exact same as validating any other field.. just make sure the name of the field in your html:hidden corresponds to a setter method in your form. Then create your own validate function within the form to check the variable is correct.. -David - Original Message - From: Octavia Yung [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 28, 2003 4:13 PM Subject: Struts Validator and Hidden Field Hi Everyone, I was wondering if it is possible to validate a hidden field using the Struts Validator framework. If so, an example would be extremely helpful. Thanks in advance! Octavia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator and Hidden Field
I was wondering if it is possible to validate a hidden field using the Struts Validator framework. If so, an example would be extremely helpful. Validator is a separate project in the Jakarta Commons, it's not part of Struts proper. Sure you could validate a hidden field, but what's the poor user supposed to do when you toss back an error that such-and-such field is required? He can't DO anything about it, the field is hidden! (Unless perhaps there's client side scripting setting a value when he fills in a visible field?) I don't see it as any different than validating a text box, did you try it and it didn't work? By the time the request gets turned into a Form bean, Struts doesn't know or care that the field was hidden on the HTML form it came from. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University, PA, IRM
Re: Struts Validator and Hidden Field
Thanks for the responses, David and Wendy. In order to determine if a particular form field is required, I need to determine the property of another field. Therefore, I thought it would be best to hold this other property in a hidden field. I have tried to validate it as any other input field, but have not had any luck. Any suggestions/ideas? Thanks much! - Original Message - From: Wendy Smoak [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, August 28, 2003 3:36 PM Subject: RE: Struts Validator and Hidden Field I was wondering if it is possible to validate a hidden field using the Struts Validator framework. If so, an example would be extremely helpful. Validator is a separate project in the Jakarta Commons, it's not part of Struts proper. Sure you could validate a hidden field, but what's the poor user supposed to do when you toss back an error that such-and-such field is required? He can't DO anything about it, the field is hidden! (Unless perhaps there's client side scripting setting a value when he fills in a visible field?) I don't see it as any different than validating a text box, did you try it and it didn't work? By the time the request gets turned into a Form bean, Struts doesn't know or care that the field was hidden on the HTML form it came from. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University, PA, IRM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Validator mask
I'm not familiar with the use of double quotes in regexes. However, you seem to have the right idea. Instead of quotes, try using \\ in place of each \ you want to match. E.g.: ^\\(\\[A-Za-z0-0_-]+)+\\?$ Quick explanation \\ - Must start with a single backslash (\\[A-Za-z0-0_-]+) - A pattern representing a backslash followed by one or more valid letters/numbers/symbols. If - is the last character in a [ ] block, it loses its special meaning and just matches -. The pattern is wrapped in () and specified to occur 1 or more times with +. Finally, there's a trailing \\? saying the path may optionally end with \. Don't know if you want that or not. NOTE: this pattern won't allow \\. Don't know if that matters. K.C. Daniel Massie wrote: I am trying to write a regular expression to represent a network path. Network paths are of the form \\path\to\folder The regular expression which I thought would achieve this is ^\{2}([A-Za-z0-9]-_)+\{1}([A-Za-z0-9]-_\)+$ But I am having no luck. Can anyone help? Thanks Daniel Massie - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator
Hi Steve, Have you looked at the struts-validator sample app? The 'types' examples show most of the basic validations. If you've already looked at it, is there anything that would make it easier to understand? No I had not heard about the sample app. I looked again on the main Struts page and in the validator section there are 3 resources: 1) A validating Two fields match by matt raible (by the way - IMHO this method /or a different implementation which does the same thing, would be VERY helpful to be a part of the main validator package as it is such a common requirement) 2)DynaForms and the Validator - a PDF document 3) Validating user input - a PDF document Am I missing the link? Is it part of the struts bundle? I think a link from the main validator page would be helpful as this is where I went to initially find out how to use the validator. requiredif is in 1.1. Do you mean validwhen? If so, that's back in the nightly build and will be in the next release. Cool. :-) -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 15:47 To: Struts Users Mailing List Subject: RE: Struts Validator -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: August 14, 2003 6:29 AM To: 'Struts Users Mailing List' Subject: RE: Struts Validator +1 for it works for me too. Not knowing javascript well, using the validator allowed me to quickly do client side validation. +1 for it isn't so easy to use. I think a REALLY simple default app that shows exactly how each different field validation works would dramatically increase the use of the validator, which would in turn dramatically increase the quality of the validator. Have you looked at the struts-validator sample app? The 'types' examples show most of the basic validations. If you've already looked at it, is there anything that would make it easier to understand? Even a single jsp page for each field type and a submit button would be a help. I only really use it for required strings and emails for example. Even though I tried and failed to use required if functionality. It's a pity that this feature couldn't be included in the struts 1.1 release. requiredif is in 1.1. Do you mean validwhen? If so, that's back in the nightly build and will be in the next release. Steve However, at any rate, saying it's absolutely crap is both wrong and not so nice IMHO. Brian -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 14:06 To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: Struts Validator +1 - Validator works. I started using it wy back in the pre-RC1 days. Everytime that Validator hasn't worked for me, I've found that it was due to a screw up on my part (usually something in the validation.xml file). Except for rare occasions, I haven't had to write a customized validate method. When I do have to, I try to extend Validator so I can continue to use the tool. +1 - Validator is not perfect. While I haven't found any major bugs (at least ones that haven't already been reported), Validator does have its quirks - you have got to get the validation.xml file right or else it just flat won't work. Also, since Validator relies on your ApplicationResources.properties file for its error messages, it may appear that Validator is not working, when in reality, it just can't find the message to return to the client. +1,000,000 - There is only Us. If not, then Micro$oft would be the only choice for doing web development, and I'd have to find another career :-) Mark - I'll offer this again. I'll be more than happy to look over your forms, struts-config.xml, validator-rules.xml, validation.xml, and properties files and see if I can figure out why you can't get Validator working. Let me know. Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 7:30 PM To: Struts Users Mailing List Subject: RE: Struts Validator Let me state the blindingly obvious: 1. Validator works. Other people seem to be able to use it. 2. Validator is not perfect. Valid bug reports would help make it better. 3. This is a community project. There is no Us and Them, only Us. And, for better or worse, that includes you. Since you've not posted any bug reports about validator I can only assume that you are either (a) blowing hot air, or (b) incapable of describing the bugs you say you've found. If you aren't capable of making a meaningful contribution, please at least don't waste other people's time with your nonsense. I'm not going to spend any more time batting this back and forth with you. If you are prepared to provide constructive criticism and/or help improve
RE: Struts Validator-nextreleasewhen (was validwhen)
With great trepidation, I must inquire as to the likelihood of a next release of the commons-validator in the near term future. (ducking for cover now as the flames telling me to read the Apache release process policy on the web site are fired off in my direction ;-)). Seriously, I did look in the bug database already. If my search was setup correctly, I only saw 5 open bugs against Validator (amazingly low number given that it is supposed to be crap) and they were all categorized as enhancement requests. I suspect that not too much has changed since the version that shipped with Struts 1.1. So, you may not want to push out a new release at this time. However, it is unfortunate that the ability to modularize development of larger apps with multiple struts-config files and multiple application resource files is pretty much there in the Struts 1.1 release except for mutliple resource files support in Validator. Since it looks like the support for bundle attributes was added at least at the arg level, a dot release now of just the commons-validator would make it possible to use multiple resource files to some degree with the Validator in a Struts 1.1 webapp. I'm not looking for a fixed date commitment. I realize it is all volunteer efforts on this stuff that can't be held to any particular schedule. I'll totally understand if there are no plans to move towards a dot release of Validator anytime soon, but, I am curious as to whether plans to move towards a dot release are imminent or not even on the horizon. -Van Mike Van Riper mailto:[EMAIL PROTECTED] http://www.baychi.org/bof/struts -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 8:41 AM To: Struts Users Mailing List Subject: RE: Struts Validator-validwhen It's not in Struts 1.1 but it's available in the nightly build and will be in the next release. Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: August 14, 2003 8:32 AM To: [EMAIL PROTECTED] Subject: Struts Validator-validwhen Hi, The struts Validator 'validwhen' I could not find anywhere in struts,even though it was mensioned in documentation. If it is available Could anybody please help me where exactly it is available? Thanks, Shailaja -- A . S . C . A . P.-- This message, including any attachments, is intended solely for the person or entity to which it is addressed and may contain information that is legally privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient, please contact sender immediately by reply email and destroy all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator
--- Mark Galbreath [EMAIL PROTECTED] wrote: Chuck keeps threatening me to come up to MD to show me that it actually does work, but I think he has refrained from doing so because secretly he knows it's crap, too. What are you using instead? Once you get past the setup step it's *far* easier to use the Validator and supplement it with custom coding when needed. David Mark -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 4:50 PM To: Struts Users Mailing List Subject: RE: Struts Validator Validator is crap; don't waste your time. Don't mind Mark, he's perpetually waking up on the wrong side of the bed. Validator is actually one of the coolest features of Struts and combined with DyanActionForms reduces form coding time significantly. I don't think Mark ever got it working but it really doesn't take long to set it up and start playing with it. David Mark -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I have a small sample app that works OK but cannot get my main app to work! As far as I can see I have done everything the same as in the sample one. I have noticed that when the sample app that works starts up I get four messages from the ValidatorPlugin the first pair mentions the validation.xml and the validator-rules.xml then later it says ValidatorPlugin initResources then the previous xml messages. With the real app that doesn't work I don't get these second initResources messages. I am not sure if this is significant or not, does anyone have any ideas? I have: - plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in in my struts-config and form name=ValidationType field property=code depends=required arg0 key=validationCode.code/ /field field property=constant depends=required,integer arg0 key=validationCode.constant/ /field /form in my validation.xml validator-rules.xml are default my formbean is extending ValidatorActionForm and my action mapping is action path=/ValidationType name=validationTypeForm input=/jsp/validationtype/validationType.jsp type=com.mycompany.ValidationTypeAction scope=session forward name=Success path=/jsp/success.jsp redirect=true/ forward name=Failure path=/jsp/failure.jsp redirect=true/ /action I am using Struts 1.1 with Tomcat 4.1.24 on XP Can anyone help? Thanks Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator
--- Jerry Jalenak [EMAIL PROTECTED] wrote: +1 - Validator works. I started using it wy back in the pre-RC1 days. Everytime that Validator hasn't worked for me, I've found that it was due to a screw up on my part (usually something in the validation.xml file). Except for rare occasions, I haven't had to write a customized validate method. When I do have to, I try to extend Validator so I can continue to use the tool. +1 - Validator is not perfect. While I haven't found any major bugs (at least ones that haven't already been reported), Validator does have its quirks - you have got to get the validation.xml file right or else it just flat won't work. Commons Validator never validated the XML files until a couple of days ago when I committed a fix for that. This caught a few missing attributes in the test XML files and should help you debug some configuration problems. David Also, since Validator relies on your ApplicationResources.properties file for its error messages, it may appear that Validator is not working, when in reality, it just can't find the message to return to the client. +1,000,000 - There is only Us. If not, then Micro$oft would be the only choice for doing web development, and I'd have to find another career :-) Mark - I'll offer this again. I'll be more than happy to look over your forms, struts-config.xml, validator-rules.xml, validation.xml, and properties files and see if I can figure out why you can't get Validator working. Let me know. Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 7:30 PM To: Struts Users Mailing List Subject: RE: Struts Validator Let me state the blindingly obvious: 1. Validator works. Other people seem to be able to use it. 2. Validator is not perfect. Valid bug reports would help make it better. 3. This is a community project. There is no Us and Them, only Us. And, for better or worse, that includes you. Since you've not posted any bug reports about validator I can only assume that you are either (a) blowing hot air, or (b) incapable of describing the bugs you say you've found. If you aren't capable of making a meaningful contribution, please at least don't waste other people's time with your nonsense. I'm not going to spend any more time batting this back and forth with you. If you are prepared to provide constructive criticism and/or help improve Struts, you'll find many people willing to accept your help and to offer theirs in return. If not, well it's pretty easy to filter you out. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 3:17 PM To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: Struts Validator Dave, My only complaint with the authors of validator is that (a) they say it's really cheeky, but (b) a host of developers, including me, have complaints about it. It just doesn't work within the framework documented. The List is full of complaints and requests along these lines. You can ignore me, but just dip into the List archive and see. I write my own validator methods because I couldn't get Validator to work within the Struts framework; looking at the archive, there are hundreds more that could not do the same. I am not looking for a war here. All I ask is to get the damn thing right before offering it as a release to our community. Mark -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 5:45 PM To: Struts Users Mailing List Subject: RE: Struts Validator --- Mark Galbreath [EMAIL PROTECTED] wrote: Me put up? You offered this to the OS community with insufficient documentation. Just look at the archive for this list and I'll wager there are more questions/complaints about Validator than any other aspect of the Struts community. Me shut up? Why don't you guys PUT UP? We don't work for you. Steve is right. If you don't have any constructive criticism or patches it's time to quiet down. David Mark -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 5:02 PM To: Struts Users Mailing List Subject: RE: Struts Validator Time to put up or shut up, Mark. If there are specific bugs you have encountered with Validator, please report them via Bugzilla so they can be addressed. (Patches would also be nice). Failing that, why not write something yourself and donate it so we can call your hard work crap? Otherwise
RE: Struts Validator
Cheers David, I'll take a look Brian -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 16:14 To: Struts Users Mailing List Subject: RE: Struts Validator --- Brian McSweeney [EMAIL PROTECTED] wrote: Hi Steve, Have you looked at the struts-validator sample app? The 'types' examples show most of the basic validations. If you've already looked at it, is there anything that would make it easier to understand? No I had not heard about the sample app. I looked again on the main Struts page and in the validator section there are 3 resources: 1) A validating Two fields match by matt raible (by the way - IMHO this method /or a different implementation which does the same thing, would be VERY helpful to be a part of the main validator package as it is such a common requirement) 2)DynaForms and the Validator - a PDF document 3) Validating user input - a PDF document Am I missing the link? Is it part of the struts bundle? Yes, it comes with the standard Struts distro. David I think a link from the main validator page would be helpful as this is where I went to initially find out how to use the validator. requiredif is in 1.1. Do you mean validwhen? If so, that's back in the nightly build and will be in the next release. Cool. :-) -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 15:47 To: Struts Users Mailing List Subject: RE: Struts Validator -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: August 14, 2003 6:29 AM To: 'Struts Users Mailing List' Subject: RE: Struts Validator +1 for it works for me too. Not knowing javascript well, using the validator allowed me to quickly do client side validation. +1 for it isn't so easy to use. I think a REALLY simple default app that shows exactly how each different field validation works would dramatically increase the use of the validator, which would in turn dramatically increase the quality of the validator. Have you looked at the struts-validator sample app? The 'types' examples show most of the basic validations. If you've already looked at it, is there anything that would make it easier to understand? Even a single jsp page for each field type and a submit button would be a help. I only really use it for required strings and emails for example. Even though I tried and failed to use required if functionality. It's a pity that this feature couldn't be included in the struts 1.1 release. requiredif is in 1.1. Do you mean validwhen? If so, that's back in the nightly build and will be in the next release. Steve However, at any rate, saying it's absolutely crap is both wrong and not so nice IMHO. Brian -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 14:06 To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: Struts Validator +1 - Validator works. I started using it wy back in the pre-RC1 days. Everytime that Validator hasn't worked for me, I've found that it was due to a screw up on my part (usually something in the validation.xml file). Except for rare occasions, I haven't had to write a customized validate method. When I do have to, I try to extend Validator so I can continue to use the tool. +1 - Validator is not perfect. While I haven't found any major bugs (at least ones that haven't already been reported), Validator does have its quirks - you have got to get the validation.xml file right or else it just flat won't work. Also, since Validator relies on your ApplicationResources.properties file for its error messages, it may appear that Validator is not working, when in reality, it just can't find the message to return to the client. +1,000,000 - There is only Us. If not, then Micro$oft would be the only choice for doing web development, and I'd have to find another career :-) Mark - I'll offer this again. I'll be more than happy to look over your forms, struts-config.xml, validator-rules.xml, validation.xml, and properties files and see if I can figure out why you can't get Validator working. Let me know. Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 7:30 PM To: Struts Users Mailing List Subject: RE: Struts Validator Let me state the blindingly obvious: 1. Validator works. Other people seem to be able to use it. 2. Validator is not perfect. Valid bug reports would help make it better. 3. This is a community project. There is no Us and Them, only Us. And, for better or worse, that includes you. Since you've not posted any
RE: Struts Validator
Dave, My only complaint with the authors of validator is that (a) they say it's really cheeky, but (b) a host of developers, including me, have complaints about it. It just doesn't work within the framework documented. The List is full of complaints and requests along these lines. You can ignore me, but just dip into the List archive and see. I write my own validator methods because I couldn't get Validator to work within the Struts framework; looking at the archive, there are hundreds more that could not do the same. I am not looking for a war here. All I ask is to get the damn thing right before offering it as a release to our community. Mark -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 5:45 PM To: Struts Users Mailing List Subject: RE: Struts Validator --- Mark Galbreath [EMAIL PROTECTED] wrote: Me put up? You offered this to the OS community with insufficient documentation. Just look at the archive for this list and I'll wager there are more questions/complaints about Validator than any other aspect of the Struts community. Me shut up? Why don't you guys PUT UP? We don't work for you. Steve is right. If you don't have any constructive criticism or patches it's time to quiet down. David Mark -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 5:02 PM To: Struts Users Mailing List Subject: RE: Struts Validator Time to put up or shut up, Mark. If there are specific bugs you have encountered with Validator, please report them via Bugzilla so they can be addressed. (Patches would also be nice). Failing that, why not write something yourself and donate it so we can call your hard work crap? Otherwise, please give it a rest. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 1:41 PM To: 'Struts Users Mailing List' Subject: RE: Struts Validator Validator is crap; don't waste your time. Mark -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I have a small sample app that works OK but cannot get my main app to work! As far as I can see I have done everything the same as in the sample one. I have noticed that when the sample app that works starts up I get four messages from the ValidatorPlugin the first pair mentions the validation.xml and the validator-rules.xml then later it says ValidatorPlugin initResources then the previous xml messages. With the real app that doesn't work I don't get these second initResources messages. I am not sure if this is significant or not, does anyone have any ideas? I have: - plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in in my struts-config and form name=ValidationType field property=code depends=required arg0 key=validationCode.code/ /field field property=constant depends=required,integer arg0 key=validationCode.constant/ /field /form in my validation.xml validator-rules.xml are default my formbean is extending ValidatorActionForm and my action mapping is action path=/ValidationType name=validationTypeForm input=/jsp/validationtype/validationType.jsp type=com.mycompany.ValidationTypeAction scope=session forward name=Success path=/jsp/success.jsp redirect=true/ forward name=Failure path=/jsp/failure.jsp redirect=true/ /action I am using Struts 1.1 with Tomcat 4.1.24 on XP Can anyone help? Thanks Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail
RE: Struts Validator
Get a life, Mark. You offered this to the OS community with insufficient documentation. Yeah, that's what open source is all about. Deal with it. Oh, did you find the open source project with the good documentation? Urban myth. -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 5:40 PM To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: Struts Validator Just look at the archive for this list and I'll wager there are more questions/complaints about Validator than any other aspect of the Struts community. Me shut up? Why don't you guys PUT UP? Mark -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 5:02 PM To: Struts Users Mailing List Subject: RE: Struts Validator Time to put up or shut up, Mark. If there are specific bugs you have encountered with Validator, please report them via Bugzilla so they can be addressed. (Patches would also be nice). Failing that, why not write something yourself and donate it so we can call your hard work crap? Otherwise, please give it a rest. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 1:41 PM To: 'Struts Users Mailing List' Subject: RE: Struts Validator Validator is crap; don't waste your time. Mark -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I have a small sample app that works OK but cannot get my main app to work! As far as I can see I have done everything the same as in the sample one. I have noticed that when the sample app that works starts up I get four messages from the ValidatorPlugin the first pair mentions the validation.xml and the validator-rules.xml then later it says ValidatorPlugin initResources then the previous xml messages. With the real app that doesn't work I don't get these second initResources messages. I am not sure if this is significant or not, does anyone have any ideas? I have: - plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in in my struts-config and form name=ValidationType field property=code depends=required arg0 key=validationCode.code/ /field field property=constant depends=required,integer arg0 key=validationCode.constant/ /field /form in my validation.xml validator-rules.xml are default my formbean is extending ValidatorActionForm and my action mapping is action path=/ValidationType name=validationTypeForm input=/jsp/validationtype/validationType.jsp type=com.mycompany.ValidationTypeAction scope=session forward name=Success path=/jsp/success.jsp redirect=true/ forward name=Failure path=/jsp/failure.jsp redirect=true/ /action I am using Struts 1.1 with Tomcat 4.1.24 on XP Can anyone help? Thanks Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator
In the default Struts-1.0 binary download, there is an file called struts-example.war, among other war files. Cheers:). -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: August 14, 2003 9:10 AM To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: Struts Validator Hi Steve, Have you looked at the struts-validator sample app? The 'types' examples show most of the basic validations. If you've already looked at it, is there anything that would make it easier to understand? No I had not heard about the sample app. I looked again on the main Struts page and in the validator section there are 3 resources: 1) A validating Two fields match by matt raible (by the way - IMHO this method /or a different implementation which does the same thing, would be VERY helpful to be a part of the main validator package as it is such a common requirement) 2)DynaForms and the Validator - a PDF document 3) Validating user input - a PDF document Am I missing the link? Is it part of the struts bundle? I think a link from the main validator page would be helpful as this is where I went to initially find out how to use the validator. requiredif is in 1.1. Do you mean validwhen? If so, that's back in the nightly build and will be in the next release. Cool. :-) -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 15:47 To: Struts Users Mailing List Subject: RE: Struts Validator -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: August 14, 2003 6:29 AM To: 'Struts Users Mailing List' Subject: RE: Struts Validator +1 for it works for me too. Not knowing javascript well, using the validator allowed me to quickly do client side validation. +1 for it isn't so easy to use. I think a REALLY simple default app that shows exactly how each different field validation works would dramatically increase the use of the validator, which would in turn dramatically increase the quality of the validator. Have you looked at the struts-validator sample app? The 'types' examples show most of the basic validations. If you've already looked at it, is there anything that would make it easier to understand? Even a single jsp page for each field type and a submit button would be a help. I only really use it for required strings and emails for example. Even though I tried and failed to use required if functionality. It's a pity that this feature couldn't be included in the struts 1.1 release. requiredif is in 1.1. Do you mean validwhen? If so, that's back in the nightly build and will be in the next release. Steve However, at any rate, saying it's absolutely crap is both wrong and not so nice IMHO. Brian -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 14:06 To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: Struts Validator +1 - Validator works. I started using it wy back in the pre-RC1 days. Everytime that Validator hasn't worked for me, I've found that it was due to a screw up on my part (usually something in the validation.xml file). Except for rare occasions, I haven't had to write a customized validate method. When I do have to, I try to extend Validator so I can continue to use the tool. +1 - Validator is not perfect. While I haven't found any major bugs (at least ones that haven't already been reported), Validator does have its quirks - you have got to get the validation.xml file right or else it just flat won't work. Also, since Validator relies on your ApplicationResources.properties file for its error messages, it may appear that Validator is not working, when in reality, it just can't find the message to return to the client. +1,000,000 - There is only Us. If not, then Micro$oft would be the only choice for doing web development, and I'd have to find another career :-) Mark - I'll offer this again. I'll be more than happy to look over your forms, struts-config.xml, validator-rules.xml, validation.xml, and properties files and see if I can figure out why you can't get Validator working. Let me know. Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 7:30 PM To: Struts Users Mailing List Subject: RE: Struts Validator Let me state the blindingly obvious: 1. Validator works. Other people seem to be able to use it. 2. Validator is not perfect. Valid bug reports would help make it better. 3. This is a community project. There is no Us and Them, only Us. And, for better or worse, that includes you. Since you've not posted any bug reports about validator I can only assume that you are either (a) blowing hot air, or (b) incapable of describing the bugs you
RE: Struts Validator
Validator is crap; don't waste your time. Mark -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I have a small sample app that works OK but cannot get my main app to work! As far as I can see I have done everything the same as in the sample one. I have noticed that when the sample app that works starts up I get four messages from the ValidatorPlugin the first pair mentions the validation.xml and the validator-rules.xml then later it says ValidatorPlugin initResources then the previous xml messages. With the real app that doesn't work I don't get these second initResources messages. I am not sure if this is significant or not, does anyone have any ideas? I have: - plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in in my struts-config and form name=ValidationType field property=code depends=required arg0 key=validationCode.code/ /field field property=constant depends=required,integer arg0 key=validationCode.constant/ /field /form in my validation.xml validator-rules.xml are default my formbean is extending ValidatorActionForm and my action mapping is action path=/ValidationType name=validationTypeForm input=/jsp/validationtype/validationType.jsp type=com.mycompany.ValidationTypeAction scope=session forward name=Success path=/jsp/success.jsp redirect=true/ forward name=Failure path=/jsp/failure.jsp redirect=true/ /action I am using Struts 1.1 with Tomcat 4.1.24 on XP Can anyone help? Thanks Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Validator Javascript
On Sun, 10 Aug 2003, Adam Hardy wrote: Date: Sun, 10 Aug 2003 18:41:32 +0200 From: Adam Hardy [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Struts Validator Javascript Sgarlata Matt wrote: I like the concept of the validator, but personally I don't have a lot of confidence in it. that's a bit harsh. I think as long as you know what it does and doesn't do, there's every reason to have confidence in it. It's an excellent package that will benefit even more when people use it and reports bugs or vote for existing ones or even submit patches in bugzilla :O I sense an opportunity to share something I got from the Ant mailing list recently (struts gurus feel free to slap me down if the same sort of thing doesn't apply to struts) : (1) open an enhancement request in bugzilla and attach your patch. If you just send it to the list it could get lost over time. (2) send a mail to [EMAIL PROTECTED] explaining why you think the enhancement is worth it. For us, it is [EMAIL PROTECTED] of course. (3) send a mail to [EMAIL PROTECTED] so that the people who share your opinion can go to the enhancement request and vote for it. Lobbying on [EMAIL PROTECTED] is perfectly legitimate, too :-). (4) be persistent. It is often the case that committers have a lot of time for Ant development in one week and almost none in the next. This could mean you'll need to redo (2). Exactly the same overall advice applies here, with only one wrinkle -- Struts relies on a lot of functionality imported from the Jakarta Commons libraries (Validator being one of them), so it might end up being the case that the enhancement request or bug report should really be filed there instead of against Struts. I wouldn't worry overmuch about getting it in the right place, though -- there's lots of committers that are common to both, and will help recategorize bug reports and enhancement requests as needed. One additonal tweak we've been using in Struts is that a bug report or enhancement request that has a patch included (as an enhancement) should have PatchAvailable added in the Keywords field, to make it easier for committers to find them. Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Validator Javascript
You can reach Bugzilla at: http://nagoya.apache.org/bugzilla Matt - Original Message - From: Erez Efrati [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 12:44 PM Subject: RE: Struts Validator Javascript Didn't know about the bug list, but excuse me for not knowing that, can you drop me the link for the bug-list please. Just for those of you who don't have faith in it, it does work, but needs a little or more fixing and improvement. Overall, I'd say it's a good pretty good infrastructure still needing more care and attention. Currently the only solution I have for myself is coding it myself and hoping to see what comes around in the future releases. And yes, I am special :) my mother told me so. Erez -Original Message- From: Reinhard [mailto:[EMAIL PROTECTED] Sent: Sunday, August 10, 2003 5:40 PM To: Struts Users Mailing List Subject: Re: Struts Validator Javascript ... Am I so special :) ;-) If I remember it well, it's an open issue in the bug-list. cheers Reinhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator
-Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: August 14, 2003 6:29 AM To: 'Struts Users Mailing List' Subject: RE: Struts Validator +1 for it works for me too. Not knowing javascript well, using the validator allowed me to quickly do client side validation. +1 for it isn't so easy to use. I think a REALLY simple default app that shows exactly how each different field validation works would dramatically increase the use of the validator, which would in turn dramatically increase the quality of the validator. Have you looked at the struts-validator sample app? The 'types' examples show most of the basic validations. If you've already looked at it, is there anything that would make it easier to understand? Even a single jsp page for each field type and a submit button would be a help. I only really use it for required strings and emails for example. Even though I tried and failed to use required if functionality. It's a pity that this feature couldn't be included in the struts 1.1 release. requiredif is in 1.1. Do you mean validwhen? If so, that's back in the nightly build and will be in the next release. Steve However, at any rate, saying it's absolutely crap is both wrong and not so nice IMHO. Brian -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 14:06 To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: Struts Validator +1 - Validator works. I started using it wy back in the pre-RC1 days. Everytime that Validator hasn't worked for me, I've found that it was due to a screw up on my part (usually something in the validation.xml file). Except for rare occasions, I haven't had to write a customized validate method. When I do have to, I try to extend Validator so I can continue to use the tool. +1 - Validator is not perfect. While I haven't found any major bugs (at least ones that haven't already been reported), Validator does have its quirks - you have got to get the validation.xml file right or else it just flat won't work. Also, since Validator relies on your ApplicationResources.properties file for its error messages, it may appear that Validator is not working, when in reality, it just can't find the message to return to the client. +1,000,000 - There is only Us. If not, then Micro$oft would be the only choice for doing web development, and I'd have to find another career :-) Mark - I'll offer this again. I'll be more than happy to look over your forms, struts-config.xml, validator-rules.xml, validation.xml, and properties files and see if I can figure out why you can't get Validator working. Let me know. Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 7:30 PM To: Struts Users Mailing List Subject: RE: Struts Validator Let me state the blindingly obvious: 1. Validator works. Other people seem to be able to use it. 2. Validator is not perfect. Valid bug reports would help make it better. 3. This is a community project. There is no Us and Them, only Us. And, for better or worse, that includes you. Since you've not posted any bug reports about validator I can only assume that you are either (a) blowing hot air, or (b) incapable of describing the bugs you say you've found. If you aren't capable of making a meaningful contribution, please at least don't waste other people's time with your nonsense. I'm not going to spend any more time batting this back and forth with you. If you are prepared to provide constructive criticism and/or help improve Struts, you'll find many people willing to accept your help and to offer theirs in return. If not, well it's pretty easy to filter you out. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 3:17 PM To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: Struts Validator Dave, My only complaint with the authors of validator is that (a) they say it's really cheeky, but (b) a host of developers, including me, have complaints about it. It just doesn't work within the framework documented. The List is full of complaints and requests along these lines. You can ignore me, but just dip into the List archive and see. I write my own validator methods because I couldn't get Validator to work within the Struts framework; looking at the archive, there are hundreds more that could not do the same. I am not looking for a war here. All I ask is to get the damn thing right before offering it as a release to our community. Mark -Original Message- From: David Graham [mailto:[EMAIL PROTECTED
Re: Struts Validator Javascript
... Am I so special :) ;-) If I remember it well, it's an open issue in the bug-list. cheers Reinhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Validator
Mark Galbreath wrote: I am not looking for a war here. All I ask is to get the damn thing right before offering it as a release to our community. Release early, release often. Most open source software would -never- get released if people waited till they got the damn thing right before offering it as a release to our community... and I'd rather be able to use unfinished betaware than wait forever on vaporware. Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Validator Javascript
I like the concept of the validator, but personally I don't have a lot of confidence in it. The second thing I tried to do with it was use the inRange (or whatever) test, and it didn't work. I use it server-side and only for required fields. Matt - Original Message - From: Erez Efrati [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Sunday, August 10, 2003 12:28 PM Subject: Struts Validator Javascript Working with the validator I found that the client-side javascript code automatically generated by the validator tag does not handle correctly or at all fields that are radio group , checkbox group or any other type of group that exist. I have posted few times on that but no response. After that I went and fixed the javascript code to do it correctly in the validateRequired() for instance. I am just wondering, am I the only one to use the client side validator avascript? Am I so special :) ? Or everyone else is doing it differently? I would appreciate any remark. Erez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator
+1 for it works for me too. Not knowing javascript well, using the validator allowed me to quickly do client side validation. +1 for it isn't so easy to use. I think a REALLY simple default app that shows exactly how each different field validation works would dramatically increase the use of the validator, which would in turn dramatically increase the quality of the validator. Even a single jsp page for each field type and a submit button would be a help. I only really use it for required strings and emails for example. Even though I tried and failed to use required if functionality. It's a pity that this feature couldn't be included in the struts 1.1 release. However, at any rate, saying it's absolutely crap is both wrong and not so nice IMHO. Brian -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 14:06 To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: Struts Validator +1 - Validator works. I started using it wy back in the pre-RC1 days. Everytime that Validator hasn't worked for me, I've found that it was due to a screw up on my part (usually something in the validation.xml file). Except for rare occasions, I haven't had to write a customized validate method. When I do have to, I try to extend Validator so I can continue to use the tool. +1 - Validator is not perfect. While I haven't found any major bugs (at least ones that haven't already been reported), Validator does have its quirks - you have got to get the validation.xml file right or else it just flat won't work. Also, since Validator relies on your ApplicationResources.properties file for its error messages, it may appear that Validator is not working, when in reality, it just can't find the message to return to the client. +1,000,000 - There is only Us. If not, then Micro$oft would be the only choice for doing web development, and I'd have to find another career :-) Mark - I'll offer this again. I'll be more than happy to look over your forms, struts-config.xml, validator-rules.xml, validation.xml, and properties files and see if I can figure out why you can't get Validator working. Let me know. Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 7:30 PM To: Struts Users Mailing List Subject: RE: Struts Validator Let me state the blindingly obvious: 1. Validator works. Other people seem to be able to use it. 2. Validator is not perfect. Valid bug reports would help make it better. 3. This is a community project. There is no Us and Them, only Us. And, for better or worse, that includes you. Since you've not posted any bug reports about validator I can only assume that you are either (a) blowing hot air, or (b) incapable of describing the bugs you say you've found. If you aren't capable of making a meaningful contribution, please at least don't waste other people's time with your nonsense. I'm not going to spend any more time batting this back and forth with you. If you are prepared to provide constructive criticism and/or help improve Struts, you'll find many people willing to accept your help and to offer theirs in return. If not, well it's pretty easy to filter you out. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 3:17 PM To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: Struts Validator Dave, My only complaint with the authors of validator is that (a) they say it's really cheeky, but (b) a host of developers, including me, have complaints about it. It just doesn't work within the framework documented. The List is full of complaints and requests along these lines. You can ignore me, but just dip into the List archive and see. I write my own validator methods because I couldn't get Validator to work within the Struts framework; looking at the archive, there are hundreds more that could not do the same. I am not looking for a war here. All I ask is to get the damn thing right before offering it as a release to our community. Mark -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 5:45 PM To: Struts Users Mailing List Subject: RE: Struts Validator --- Mark Galbreath [EMAIL PROTECTED] wrote: Me put up? You offered this to the OS community with insufficient documentation. Just look at the archive for this list and I'll wager there are more questions/complaints about Validator than any other aspect of the Struts community. Me shut up? Why don't you guys PUT UP? We don't work for you. Steve is right. If you don't have any constructive criticism or patches it's time to quiet down. David
RE: [OT] RE: Struts Validator
*ouch* that's harsh, man...really harsh. :-)~ -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 7:21 PM To: Struts Users Mailing List Subject: Re: [OT] RE: Struts Validator Just threaten to repost [Mark's] String.length() versus array.length mixup. That ought to quiet him down for a while... :) -jeff On Wednesday, August 13, 2003, at 05:55 PM, Micael wrote: I don't know about the rest of you, but I have found this approach generally not to work. It especially does not work on an expert at it. LOL. I would use this on the quiet type, Steve. I think that with Mark you might find it not completely or utterly or wonderfully successful. But , hopefully this time it will also be fun to watch. At 02:02 PM 8/13/2003 -0700, Steve Raeburn wrote: Time to put up or shut up, Mark. If there are specific bugs you have encountered with Validator, please report them via Bugzilla so they can be addressed. (Patches would also be nice). Failing that, why not write something yourself and donate it so we can call your hard work crap? Otherwise, please give it a rest. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 1:41 PM To: 'Struts Users Mailing List' Subject: RE: Struts Validator Validator is crap; don't waste your time. Mark -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I have a small sample app that works OK but cannot get my main app to work! As far as I can see I have done everything the same as in the sample one. I have noticed that when the sample app that works starts up I get four messages from the ValidatorPlugin the first pair mentions the validation.xml and the validator-rules.xml then later it says ValidatorPlugin initResources then the previous xml messages. With the real app that doesn't work I don't get these second initResources messages. I am not sure if this is significant or not, does anyone have any ideas? I have: - plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in in my struts-config and form name=ValidationType field property=code depends=required arg0 key=validationCode.code/ /field field property=constant depends=required,integer arg0 key=validationCode.constant/ /field /form in my validation.xml validator-rules.xml are default my formbean is extending ValidatorActionForm and my action mapping is action path=/ValidationType name=validationTypeForm input=/jsp/validationtype/validationType.jsp type=com.mycompany.ValidationTypeAction scope=session forward name=Success path=/jsp/success.jsp redirect=true/ forward name=Failure path=/jsp/failure.jsp redirect=true/ /action I am using Struts 1.1 with Tomcat 4.1.24 on XP Can anyone help? Thanks Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator
Wow! That was impressive. Now I know why Validator sucks. -Original Message- From: Stephen Brown [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 5:52 PM To: 'Struts Users Mailing List' Subject: RE: Struts Validator Get a life, Mark. You offered this to the OS community with insufficient documentation. Yeah, that's what open source is all about. Deal with it. Oh, did you find the open source project with the good documentation? Urban myth. -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 5:40 PM To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: Struts Validator Just look at the archive for this list and I'll wager there are more questions/complaints about Validator than any other aspect of the Struts community. Me shut up? Why don't you guys PUT UP? Mark -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 5:02 PM To: Struts Users Mailing List Subject: RE: Struts Validator Time to put up or shut up, Mark. If there are specific bugs you have encountered with Validator, please report them via Bugzilla so they can be addressed. (Patches would also be nice). Failing that, why not write something yourself and donate it so we can call your hard work crap? Otherwise, please give it a rest. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 1:41 PM To: 'Struts Users Mailing List' Subject: RE: Struts Validator Validator is crap; don't waste your time. Mark -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I have a small sample app that works OK but cannot get my main app to work! As far as I can see I have done everything the same as in the sample one. I have noticed that when the sample app that works starts up I get four messages from the ValidatorPlugin the first pair mentions the validation.xml and the validator-rules.xml then later it says ValidatorPlugin initResources then the previous xml messages. With the real app that doesn't work I don't get these second initResources messages. I am not sure if this is significant or not, does anyone have any ideas? I have: - plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in in my struts-config and form name=ValidationType field property=code depends=required arg0 key=validationCode.code/ /field field property=constant depends=required,integer arg0 key=validationCode.constant/ /field /form in my validation.xml validator-rules.xml are default my formbean is extending ValidatorActionForm and my action mapping is action path=/ValidationType name=validationTypeForm input=/jsp/validationtype/validationType.jsp type=com.mycompany.ValidationTypeAction scope=session forward name=Success path=/jsp/success.jsp redirect=true/ forward name=Failure path=/jsp/failure.jsp redirect=true/ /action I am using Struts 1.1 with Tomcat 4.1.24 on XP Can anyone help? Thanks Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Validator Javascript
Sgarlata Matt wrote: I like the concept of the validator, but personally I don't have a lot of confidence in it. that's a bit harsh. I think as long as you know what it does and doesn't do, there's every reason to have confidence in it. It's an excellent package that will benefit even more when people use it and reports bugs or vote for existing ones or even submit patches in bugzilla :O I sense an opportunity to share something I got from the Ant mailing list recently (struts gurus feel free to slap me down if the same sort of thing doesn't apply to struts) : (1) open an enhancement request in bugzilla and attach your patch. If you just send it to the list it could get lost over time. (2) send a mail to [EMAIL PROTECTED] explaining why you think the enhancement is worth it. (3) send a mail to [EMAIL PROTECTED] so that the people who share your opinion can go to the enhancement request and vote for it. (4) be persistent. It is often the case that committers have a lot of time for Ant development in one week and almost none in the next. This could mean you'll need to redo (2). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator
--- Brian McSweeney [EMAIL PROTECTED] wrote: Hi Steve, Have you looked at the struts-validator sample app? The 'types' examples show most of the basic validations. If you've already looked at it, is there anything that would make it easier to understand? No I had not heard about the sample app. I looked again on the main Struts page and in the validator section there are 3 resources: 1) A validating Two fields match by matt raible (by the way - IMHO this method /or a different implementation which does the same thing, would be VERY helpful to be a part of the main validator package as it is such a common requirement) 2)DynaForms and the Validator - a PDF document 3) Validating user input - a PDF document Am I missing the link? Is it part of the struts bundle? Yes, it comes with the standard Struts distro. David I think a link from the main validator page would be helpful as this is where I went to initially find out how to use the validator. requiredif is in 1.1. Do you mean validwhen? If so, that's back in the nightly build and will be in the next release. Cool. :-) -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 15:47 To: Struts Users Mailing List Subject: RE: Struts Validator -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: August 14, 2003 6:29 AM To: 'Struts Users Mailing List' Subject: RE: Struts Validator +1 for it works for me too. Not knowing javascript well, using the validator allowed me to quickly do client side validation. +1 for it isn't so easy to use. I think a REALLY simple default app that shows exactly how each different field validation works would dramatically increase the use of the validator, which would in turn dramatically increase the quality of the validator. Have you looked at the struts-validator sample app? The 'types' examples show most of the basic validations. If you've already looked at it, is there anything that would make it easier to understand? Even a single jsp page for each field type and a submit button would be a help. I only really use it for required strings and emails for example. Even though I tried and failed to use required if functionality. It's a pity that this feature couldn't be included in the struts 1.1 release. requiredif is in 1.1. Do you mean validwhen? If so, that's back in the nightly build and will be in the next release. Steve However, at any rate, saying it's absolutely crap is both wrong and not so nice IMHO. Brian -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: 14 August 2003 14:06 To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: Struts Validator +1 - Validator works. I started using it wy back in the pre-RC1 days. Everytime that Validator hasn't worked for me, I've found that it was due to a screw up on my part (usually something in the validation.xml file). Except for rare occasions, I haven't had to write a customized validate method. When I do have to, I try to extend Validator so I can continue to use the tool. +1 - Validator is not perfect. While I haven't found any major bugs (at least ones that haven't already been reported), Validator does have its quirks - you have got to get the validation.xml file right or else it just flat won't work. Also, since Validator relies on your ApplicationResources.properties file for its error messages, it may appear that Validator is not working, when in reality, it just can't find the message to return to the client. +1,000,000 - There is only Us. If not, then Micro$oft would be the only choice for doing web development, and I'd have to find another career :-) Mark - I'll offer this again. I'll be more than happy to look over your forms, struts-config.xml, validator-rules.xml, validation.xml, and properties files and see if I can figure out why you can't get Validator working. Let me know. Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 7:30 PM To: Struts Users Mailing List Subject: RE: Struts Validator Let me state the blindingly obvious: 1. Validator works. Other people seem to be able to use it. 2. Validator is not perfect. Valid bug reports would help make it better. 3. This is a community project. There is no Us and Them, only Us. And, for better or worse, that includes you. Since you've not posted any bug reports about validator I can only assume that you are either (a) blowing hot air, or (b) incapable of describing the bugs you say you've found. If you aren't capable of making
RE: Struts Validator
+1 - Validator works. I started using it wy back in the pre-RC1 days. Everytime that Validator hasn't worked for me, I've found that it was due to a screw up on my part (usually something in the validation.xml file). Except for rare occasions, I haven't had to write a customized validate method. When I do have to, I try to extend Validator so I can continue to use the tool. +1 - Validator is not perfect. While I haven't found any major bugs (at least ones that haven't already been reported), Validator does have its quirks - you have got to get the validation.xml file right or else it just flat won't work. Also, since Validator relies on your ApplicationResources.properties file for its error messages, it may appear that Validator is not working, when in reality, it just can't find the message to return to the client. +1,000,000 - There is only Us. If not, then Micro$oft would be the only choice for doing web development, and I'd have to find another career :-) Mark - I'll offer this again. I'll be more than happy to look over your forms, struts-config.xml, validator-rules.xml, validation.xml, and properties files and see if I can figure out why you can't get Validator working. Let me know. Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 7:30 PM To: Struts Users Mailing List Subject: RE: Struts Validator Let me state the blindingly obvious: 1. Validator works. Other people seem to be able to use it. 2. Validator is not perfect. Valid bug reports would help make it better. 3. This is a community project. There is no Us and Them, only Us. And, for better or worse, that includes you. Since you've not posted any bug reports about validator I can only assume that you are either (a) blowing hot air, or (b) incapable of describing the bugs you say you've found. If you aren't capable of making a meaningful contribution, please at least don't waste other people's time with your nonsense. I'm not going to spend any more time batting this back and forth with you. If you are prepared to provide constructive criticism and/or help improve Struts, you'll find many people willing to accept your help and to offer theirs in return. If not, well it's pretty easy to filter you out. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 3:17 PM To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: Struts Validator Dave, My only complaint with the authors of validator is that (a) they say it's really cheeky, but (b) a host of developers, including me, have complaints about it. It just doesn't work within the framework documented. The List is full of complaints and requests along these lines. You can ignore me, but just dip into the List archive and see. I write my own validator methods because I couldn't get Validator to work within the Struts framework; looking at the archive, there are hundreds more that could not do the same. I am not looking for a war here. All I ask is to get the damn thing right before offering it as a release to our community. Mark -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 5:45 PM To: Struts Users Mailing List Subject: RE: Struts Validator --- Mark Galbreath [EMAIL PROTECTED] wrote: Me put up? You offered this to the OS community with insufficient documentation. Just look at the archive for this list and I'll wager there are more questions/complaints about Validator than any other aspect of the Struts community. Me shut up? Why don't you guys PUT UP? We don't work for you. Steve is right. If you don't have any constructive criticism or patches it's time to quiet down. David Mark -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 5:02 PM To: Struts Users Mailing List Subject: RE: Struts Validator Time to put up or shut up, Mark. If there are specific bugs you have encountered with Validator, please report them via Bugzilla so they can be addressed. (Patches would also be nice). Failing that, why not write something yourself and donate it so we can call your hard work crap? Otherwise, please give it a rest. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 1:41 PM To: 'Struts Users Mailing List' Subject: RE: Struts Validator Validator is crap; don't waste your time. Mark -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM
RE: Struts Validator
Thanks Shane, that fixed it. -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: 13 August 2003 16:41 To: 'Struts Users Mailing List' Subject: RE: Struts Validator In the validation.xml file I believe that the validator takes form name=StringWithoutForwardSlash as validate based on form name and form name=/stringWithForwardSlash as validate based on the action name. Meaning that if the validator sees a formbean with the first examples name it does validation and then if it sees an action with same name as the second example it will do validation on the associated form. Anyway, in your example you have your action name with not slash so you would have to have either: form name=/ValidationType...OR form name=ValidationTypeForm You also need to keep in mind that you need to extend ValidationTypeForm must extend ValidatorActionForm to use the action validation and ValidatorForm to use the form validation. -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I have a small sample app that works OK but cannot get my main app to work! As far as I can see I have done everything the same as in the sample one. I have noticed that when the sample app that works starts up I get four messages from the ValidatorPlugin the first pair mentions the validation.xml and the validator-rules.xml then later it says ValidatorPlugin initResources then the previous xml messages. With the real app that doesn't work I don't get these second initResources messages. I am not sure if this is significant or not, does anyone have any ideas? I have: - plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in in my struts-config and form name=ValidationType field property=code depends=required arg0 key=validationCode.code/ /field field property=constant depends=required,integer arg0 key=validationCode.constant/ /field /form in my validation.xml validator-rules.xml are default my formbean is extending ValidatorActionForm and my action mapping is action path=/ValidationType name=validationTypeForm input=/jsp/validationtype/validationType.jsp type=com.mycompany.ValidationTypeAction scope=session forward name=Success path=/jsp/success.jsp redirect=true/ forward name=Failure path=/jsp/failure.jsp redirect=true/ /action I am using Struts 1.1 with Tomcat 4.1.24 on XP Can anyone help? Thanks Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator
Validator is crap; don't waste your time. Don't mind Mark, he's perpetually waking up on the wrong side of the bed. Validator is actually one of the coolest features of Struts and combined with DyanActionForms reduces form coding time significantly. I don't think Mark ever got it working but it really doesn't take long to set it up and start playing with it. David Mark -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I have a small sample app that works OK but cannot get my main app to work! As far as I can see I have done everything the same as in the sample one. I have noticed that when the sample app that works starts up I get four messages from the ValidatorPlugin the first pair mentions the validation.xml and the validator-rules.xml then later it says ValidatorPlugin initResources then the previous xml messages. With the real app that doesn't work I don't get these second initResources messages. I am not sure if this is significant or not, does anyone have any ideas? I have: - plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in in my struts-config and form name=ValidationType field property=code depends=required arg0 key=validationCode.code/ /field field property=constant depends=required,integer arg0 key=validationCode.constant/ /field /form in my validation.xml validator-rules.xml are default my formbean is extending ValidatorActionForm and my action mapping is action path=/ValidationType name=validationTypeForm input=/jsp/validationtype/validationType.jsp type=com.mycompany.ValidationTypeAction scope=session forward name=Success path=/jsp/success.jsp redirect=true/ forward name=Failure path=/jsp/failure.jsp redirect=true/ /action I am using Struts 1.1 with Tomcat 4.1.24 on XP Can anyone help? Thanks Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator
--- Mark Galbreath [EMAIL PROTECTED] wrote: Me put up? You offered this to the OS community with insufficient documentation. Just look at the archive for this list and I'll wager there are more questions/complaints about Validator than any other aspect of the Struts community. Me shut up? Why don't you guys PUT UP? We don't work for you. Steve is right. If you don't have any constructive criticism or patches it's time to quiet down. David Mark -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 5:02 PM To: Struts Users Mailing List Subject: RE: Struts Validator Time to put up or shut up, Mark. If there are specific bugs you have encountered with Validator, please report them via Bugzilla so they can be addressed. (Patches would also be nice). Failing that, why not write something yourself and donate it so we can call your hard work crap? Otherwise, please give it a rest. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 1:41 PM To: 'Struts Users Mailing List' Subject: RE: Struts Validator Validator is crap; don't waste your time. Mark -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I have a small sample app that works OK but cannot get my main app to work! As far as I can see I have done everything the same as in the sample one. I have noticed that when the sample app that works starts up I get four messages from the ValidatorPlugin the first pair mentions the validation.xml and the validator-rules.xml then later it says ValidatorPlugin initResources then the previous xml messages. With the real app that doesn't work I don't get these second initResources messages. I am not sure if this is significant or not, does anyone have any ideas? I have: - plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in in my struts-config and form name=ValidationType field property=code depends=required arg0 key=validationCode.code/ /field field property=constant depends=required,integer arg0 key=validationCode.constant/ /field /form in my validation.xml validator-rules.xml are default my formbean is extending ValidatorActionForm and my action mapping is action path=/ValidationType name=validationTypeForm input=/jsp/validationtype/validationType.jsp type=com.mycompany.ValidationTypeAction scope=session forward name=Success path=/jsp/success.jsp redirect=true/ forward name=Failure path=/jsp/failure.jsp redirect=true/ /action I am using Struts 1.1 with Tomcat 4.1.24 on XP Can anyone help? Thanks Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] RE: Struts Validator
just trying to keep it light... :) -jeff On Thursday, August 14, 2003, at 07:29 AM, Mark Galbreath wrote: *ouch* that's harsh, man...really harsh. :-)~ -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 7:21 PM To: Struts Users Mailing List Subject: Re: [OT] RE: Struts Validator Just threaten to repost [Mark's] String.length() versus array.length mixup. That ought to quiet him down for a while... :) -jeff On Wednesday, August 13, 2003, at 05:55 PM, Micael wrote: I don't know about the rest of you, but I have found this approach generally not to work. It especially does not work on an expert at it. LOL. I would use this on the quiet type, Steve. I think that with Mark you might find it not completely or utterly or wonderfully successful. But , hopefully this time it will also be fun to watch. At 02:02 PM 8/13/2003 -0700, Steve Raeburn wrote: Time to put up or shut up, Mark. If there are specific bugs you have encountered with Validator, please report them via Bugzilla so they can be addressed. (Patches would also be nice). Failing that, why not write something yourself and donate it so we can call your hard work crap? Otherwise, please give it a rest. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 1:41 PM To: 'Struts Users Mailing List' Subject: RE: Struts Validator Validator is crap; don't waste your time. Mark -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I have a small sample app that works OK but cannot get my main app to work! As far as I can see I have done everything the same as in the sample one. I have noticed that when the sample app that works starts up I get four messages from the ValidatorPlugin the first pair mentions the validation.xml and the validator-rules.xml then later it says ValidatorPlugin initResources then the previous xml messages. With the real app that doesn't work I don't get these second initResources messages. I am not sure if this is significant or not, does anyone have any ideas? I have: - plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in in my struts-config and form name=ValidationType field property=code depends=required arg0 key=validationCode.code/ /field field property=constant depends=required,integer arg0 key=validationCode.constant/ /field /form in my validation.xml validator-rules.xml are default my formbean is extending ValidatorActionForm and my action mapping is action path=/ValidationType name=validationTypeForm input=/jsp/validationtype/validationType.jsp type=com.mycompany.ValidationTypeAction scope=session forward name=Success path=/jsp/success.jsp redirect=true/ forward name=Failure path=/jsp/failure.jsp redirect=true/ /action I am using Struts 1.1 with Tomcat 4.1.24 on XP Can anyone help? Thanks Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator
Let me state the blindingly obvious: 1. Validator works. Other people seem to be able to use it. 2. Validator is not perfect. Valid bug reports would help make it better. 3. This is a community project. There is no Us and Them, only Us. And, for better or worse, that includes you. Since you've not posted any bug reports about validator I can only assume that you are either (a) blowing hot air, or (b) incapable of describing the bugs you say you've found. If you aren't capable of making a meaningful contribution, please at least don't waste other people's time with your nonsense. I'm not going to spend any more time batting this back and forth with you. If you are prepared to provide constructive criticism and/or help improve Struts, you'll find many people willing to accept your help and to offer theirs in return. If not, well it's pretty easy to filter you out. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 3:17 PM To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: Struts Validator Dave, My only complaint with the authors of validator is that (a) they say it's really cheeky, but (b) a host of developers, including me, have complaints about it. It just doesn't work within the framework documented. The List is full of complaints and requests along these lines. You can ignore me, but just dip into the List archive and see. I write my own validator methods because I couldn't get Validator to work within the Struts framework; looking at the archive, there are hundreds more that could not do the same. I am not looking for a war here. All I ask is to get the damn thing right before offering it as a release to our community. Mark -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 5:45 PM To: Struts Users Mailing List Subject: RE: Struts Validator --- Mark Galbreath [EMAIL PROTECTED] wrote: Me put up? You offered this to the OS community with insufficient documentation. Just look at the archive for this list and I'll wager there are more questions/complaints about Validator than any other aspect of the Struts community. Me shut up? Why don't you guys PUT UP? We don't work for you. Steve is right. If you don't have any constructive criticism or patches it's time to quiet down. David Mark -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 5:02 PM To: Struts Users Mailing List Subject: RE: Struts Validator Time to put up or shut up, Mark. If there are specific bugs you have encountered with Validator, please report them via Bugzilla so they can be addressed. (Patches would also be nice). Failing that, why not write something yourself and donate it so we can call your hard work crap? Otherwise, please give it a rest. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 1:41 PM To: 'Struts Users Mailing List' Subject: RE: Struts Validator Validator is crap; don't waste your time. Mark -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I have a small sample app that works OK but cannot get my main app to work! As far as I can see I have done everything the same as in the sample one. I have noticed that when the sample app that works starts up I get four messages from the ValidatorPlugin the first pair mentions the validation.xml and the validator-rules.xml then later it says ValidatorPlugin initResources then the previous xml messages. With the real app that doesn't work I don't get these second initResources messages. I am not sure if this is significant or not, does anyone have any ideas? I have: - plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in in my struts-config and form name=ValidationType field property=code depends=required arg0 key=validationCode.code/ /field field property=constant depends=required,integer arg0 key=validationCode.constant/ /field /form in my validation.xml validator-rules.xml are default my formbean is extending ValidatorActionForm and my action mapping is action path=/ValidationType name=validationTypeForm input=/jsp/validationtype/validationType.jsp type=com.mycompany.ValidationTypeAction scope
RE: Struts Validator-nextreleasewhen (was validwhen)
-Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 11:01 AM To: Struts Users Mailing List Subject: RE: Struts Validator-nextreleasewhen (was validwhen) I suspect that not too much has changed since the version that shipped with Struts 1.1. A great deal of internal cleanup has happened in commons-validator since its 1.0.2 release as well as new features and a more extensible arg definition. I think Rob Leland is planning on getting a 1.1 release out soon. David Cool! My company won't let me ship with nightly builds, but, I'd be glad to test release candidates for an upcoming release against my webapp. If the timing was right, I might even be able to include the new release in my current project before it gets deployed. That won't be happening until the November/December timeframe. Thanks, Van - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator-nextreleasewhen (was validwhen)
I suspect that not too much has changed since the version that shipped with Struts 1.1. A great deal of internal cleanup has happened in commons-validator since its 1.0.2 release as well as new features and a more extensible arg definition. I think Rob Leland is planning on getting a 1.1 release out soon. David So, you may not want to push out a new release at this time. However, it is unfortunate that the ability to modularize development of larger apps with multiple struts-config files and multiple application resource files is pretty much there in the Struts 1.1 release except for mutliple resource files support in Validator. Since it looks like the support for bundle attributes was added at least at the arg level, a dot release now of just the commons-validator would make it possible to use multiple resource files to some degree with the Validator in a Struts 1.1 webapp. I'm not looking for a fixed date commitment. I realize it is all volunteer efforts on this stuff that can't be held to any particular schedule. I'll totally understand if there are no plans to move towards a dot release of Validator anytime soon, but, I am curious as to whether plans to move towards a dot release are imminent or not even on the horizon. -Van Mike Van Riper mailto:[EMAIL PROTECTED] http://www.baychi.org/bof/struts -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 8:41 AM To: Struts Users Mailing List Subject: RE: Struts Validator-validwhen It's not in Struts 1.1 but it's available in the nightly build and will be in the next release. Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: August 14, 2003 8:32 AM To: [EMAIL PROTECTED] Subject: Struts Validator-validwhen Hi, The struts Validator 'validwhen' I could not find anywhere in struts,even though it was mensioned in documentation. If it is available Could anybody please help me where exactly it is available? Thanks, Shailaja -- A . S . C . A . P.-- This message, including any attachments, is intended solely for the person or entity to which it is addressed and may contain information that is legally privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient, please contact sender immediately by reply email and destroy all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator for map backed beans
Hi Yansheng The one you suggested is for fields that are indexed and like codeId[0], codeId[1], codeId[2]...codeId[n]. For map-backed beans it would be value(codeId0), value(codeId1), value(codeId2)value(codeIdn) in which it doesn't work, is there any other solution for map-backed beans validator with multiple input fields in an array... Thanks Panchasheel -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 5:47 PM To: 'Struts Users Mailing List' Subject: RE: Struts Validator for map backed beans Hi! Didn't get a chance to check the newsgroup until now. Try: form name=myform field property=value indexedListProperty = value depends= arg0 key=/ /field /form -Original Message- From: Gandle, Panchasheel [mailto:[EMAIL PROTECTED] Sent: August 11, 2003 1:33 PM To: '[EMAIL PROTECTED]' Subject: RE: Struts Validator for map backed beans I have a map-backed bean and the corresponding jsp displays % int n=100; // n can be anything depending on DB data... for (int i=0;in;i++;) { % html:text property=value(codeId%=i%) value=/ % } % I need the validator with just one entry value(codeId) in validation.xml field property=value(codeId) ... and not 100 fields declared in there. field property=value(codeId0) ... field property=value(codeId1) ... . . . field property=value(codeId99) ... Panchasheel -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 2:31 PM To: 'Struts Users Mailing List' Subject: RE: Struts Validator for map backed beans Sorry, I'd like to help you. But I don't quite understand what you are asking. What is I have codeId (0n) n varies? If you want to know if you can validate indexed properties, the answer is Yes. See requireiif example on: http://jakarta.apache.org/struts/userGuide/dev_validator.html -Original Message- From: Gandle, Panchasheel [mailto:[EMAIL PROTECTED] Sent: August 11, 2003 8:43 AM To: 'Struts Users Mailing List' Subject: Struts Validator for map backed beans Can anybody confirm that map backed beans don't have validator. like if I have codeId (0n) n varies. On the Jsp I have value(codeId0)...value(codeIdn) the last char n is the last number to validate this , instead of entering n entries in the validation.xml I wanted it to do it with just one entry value(codeId). Does anyone know , if such validation exists, if yes please let me know. or I have already started working on MapValidator. Thanks Panchasheel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator Javascript
-Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: August 10, 2003 9:42 AM To: Struts Users Mailing List Subject: Re: Struts Validator Javascript Sgarlata Matt wrote: I like the concept of the validator, but personally I don't have a lot of confidence in it. that's a bit harsh. I think as long as you know what it does and doesn't do, there's every reason to have confidence in it. It's an excellent package that will benefit even more when people use it and reports bugs or vote for existing ones or even submit patches in bugzilla :O I sense an opportunity to share something I got from the Ant mailing list recently (struts gurus feel free to slap me down if the same sort of thing doesn't apply to struts) : Can I also suggest: (0) make *sure* it's a bug before you post a bug report. If you don't *know* that what you're experiencing is a *Struts* bug then the correct place to explore the problem is on the struts-user list. If what you're asking for is really an enhancement then mark it as such in Bugzilla. (1) open an enhancement request in bugzilla and attach your patch. If you just send it to the list it could get lost over time. (2) send a mail to [EMAIL PROTECTED] explaining why you think the enhancement is worth it. Bugzilla reports get sent to the dev list so you don't need to duplicate that. Committers are also pretty active on the user list ;-) (3) send a mail to [EMAIL PROTECTED] so that the people who share your opinion can go to the enhancement request and vote for it. (4) be persistent. It is often the case that committers have a lot of time for Ant development in one week and almost none in the next. This could mean you'll need to redo (2). I would replace (4) with be patient. If you've opened a Bugzilla report then it *will* get reviewed. But time is limited and certain issues will be dealt with more quickly. Straight-forward items and serious items tend to get closed more quickly, with those falling into the not serious, but not trival, taking a little longer. Keep investigating the problem. If you can come up with new information or a patch, then that will serve as a much more useful reminder than just repeating yourself. Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] RE: Struts Validator
I don't know about the rest of you, but I have found this approach generally not to work. It especially does not work on an expert at it. LOL. I would use this on the quiet type, Steve. I think that with Mark you might find it not completely or utterly or wonderfully successful. But , hopefully this time it will also be fun to watch. At 02:02 PM 8/13/2003 -0700, Steve Raeburn wrote: Time to put up or shut up, Mark. If there are specific bugs you have encountered with Validator, please report them via Bugzilla so they can be addressed. (Patches would also be nice). Failing that, why not write something yourself and donate it so we can call your hard work crap? Otherwise, please give it a rest. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 1:41 PM To: 'Struts Users Mailing List' Subject: RE: Struts Validator Validator is crap; don't waste your time. Mark -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I have a small sample app that works OK but cannot get my main app to work! As far as I can see I have done everything the same as in the sample one. I have noticed that when the sample app that works starts up I get four messages from the ValidatorPlugin the first pair mentions the validation.xml and the validator-rules.xml then later it says ValidatorPlugin initResources then the previous xml messages. With the real app that doesn't work I don't get these second initResources messages. I am not sure if this is significant or not, does anyone have any ideas? I have: - plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in in my struts-config and form name=ValidationType field property=code depends=required arg0 key=validationCode.code/ /field field property=constant depends=required,integer arg0 key=validationCode.constant/ /field /form in my validation.xml validator-rules.xml are default my formbean is extending ValidatorActionForm and my action mapping is action path=/ValidationType name=validationTypeForm input=/jsp/validationtype/validationType.jsp type=com.mycompany.ValidationTypeAction scope=session forward name=Success path=/jsp/success.jsp redirect=true/ forward name=Failure path=/jsp/failure.jsp redirect=true/ /action I am using Struts 1.1 with Tomcat 4.1.24 on XP Can anyone help? Thanks Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator-validwhen
It's not in Struts 1.1 but it's available in the nightly build and will be in the next release. Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: August 14, 2003 8:32 AM To: [EMAIL PROTECTED] Subject: Struts Validator-validwhen Hi, The struts Validator 'validwhen' I could not find anywhere in struts,even though it was mensioned in documentation. If it is available Could anybody please help me where exactly it is available? Thanks, Shailaja -- A . S . C . A . P.-- This message, including any attachments, is intended solely for the person or entity to which it is addressed and may contain information that is legally privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient, please contact sender immediately by reply email and destroy all copies. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Validator-nextreleasewhen (was validwhen)
David Graham wrote: I suspect that not too much has changed since the version that shipped with Struts 1.1. A great deal of internal cleanup has happened in commons-validator since its 1.0.2 release as well as new features and a more extensible arg definition. I think Rob Leland is planning on getting a 1.1 release out soon. Yep, I promised to start on it this weekend writing up the release plan. I am sure I'll have basic questions like how the [EMAIL PROTECTED] do I upload the release to the web site. I have read these docs before a long time ago -Rob David -- Robert Leland [EMAIL PROTECTED] -- Java, J2EE, Struts, Web Application Development 804 N. Kenmore Street +01-703-525-3580 Arlington VA 22201
RE: Struts Validator
I've included an example of the Two Fields custom validator in the examples at http://www.ninsky.com/struts/ The bundled struts examples are found in the webapps directory of the struts distribution (struts-validator.war). There's lots of good stuff in that directory ;-) Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator
Chuck keeps threatening me to come up to MD to show me that it actually does work, but I think he has refrained from doing so because secretly he knows it's crap, too. Mark -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 4:50 PM To: Struts Users Mailing List Subject: RE: Struts Validator Validator is crap; don't waste your time. Don't mind Mark, he's perpetually waking up on the wrong side of the bed. Validator is actually one of the coolest features of Struts and combined with DyanActionForms reduces form coding time significantly. I don't think Mark ever got it working but it really doesn't take long to set it up and start playing with it. David Mark -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I have a small sample app that works OK but cannot get my main app to work! As far as I can see I have done everything the same as in the sample one. I have noticed that when the sample app that works starts up I get four messages from the ValidatorPlugin the first pair mentions the validation.xml and the validator-rules.xml then later it says ValidatorPlugin initResources then the previous xml messages. With the real app that doesn't work I don't get these second initResources messages. I am not sure if this is significant or not, does anyone have any ideas? I have: - plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in in my struts-config and form name=ValidationType field property=code depends=required arg0 key=validationCode.code/ /field field property=constant depends=required,integer arg0 key=validationCode.constant/ /field /form in my validation.xml validator-rules.xml are default my formbean is extending ValidatorActionForm and my action mapping is action path=/ValidationType name=validationTypeForm input=/jsp/validationtype/validationType.jsp type=com.mycompany.ValidationTypeAction scope=session forward name=Success path=/jsp/success.jsp redirect=true/ forward name=Failure path=/jsp/failure.jsp redirect=true/ /action I am using Struts 1.1 with Tomcat 4.1.24 on XP Can anyone help? Thanks Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator
Me put up? You offered this to the OS community with insufficient documentation. Just look at the archive for this list and I'll wager there are more questions/complaints about Validator than any other aspect of the Struts community. Me shut up? Why don't you guys PUT UP? Mark -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 5:02 PM To: Struts Users Mailing List Subject: RE: Struts Validator Time to put up or shut up, Mark. If there are specific bugs you have encountered with Validator, please report them via Bugzilla so they can be addressed. (Patches would also be nice). Failing that, why not write something yourself and donate it so we can call your hard work crap? Otherwise, please give it a rest. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 1:41 PM To: 'Struts Users Mailing List' Subject: RE: Struts Validator Validator is crap; don't waste your time. Mark -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I have a small sample app that works OK but cannot get my main app to work! As far as I can see I have done everything the same as in the sample one. I have noticed that when the sample app that works starts up I get four messages from the ValidatorPlugin the first pair mentions the validation.xml and the validator-rules.xml then later it says ValidatorPlugin initResources then the previous xml messages. With the real app that doesn't work I don't get these second initResources messages. I am not sure if this is significant or not, does anyone have any ideas? I have: - plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in in my struts-config and form name=ValidationType field property=code depends=required arg0 key=validationCode.code/ /field field property=constant depends=required,integer arg0 key=validationCode.constant/ /field /form in my validation.xml validator-rules.xml are default my formbean is extending ValidatorActionForm and my action mapping is action path=/ValidationType name=validationTypeForm input=/jsp/validationtype/validationType.jsp type=com.mycompany.ValidationTypeAction scope=session forward name=Success path=/jsp/success.jsp redirect=true/ forward name=Failure path=/jsp/failure.jsp redirect=true/ /action I am using Struts 1.1 with Tomcat 4.1.24 on XP Can anyone help? Thanks Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] RE: Struts Validator
Just threaten to repost [Mark's] String.length() versus array.length mixup. That ought to quiet him down for a while... :) -jeff On Wednesday, August 13, 2003, at 05:55 PM, Micael wrote: I don't know about the rest of you, but I have found this approach generally not to work. It especially does not work on an expert at it. LOL. I would use this on the quiet type, Steve. I think that with Mark you might find it not completely or utterly or wonderfully successful. But , hopefully this time it will also be fun to watch. At 02:02 PM 8/13/2003 -0700, Steve Raeburn wrote: Time to put up or shut up, Mark. If there are specific bugs you have encountered with Validator, please report them via Bugzilla so they can be addressed. (Patches would also be nice). Failing that, why not write something yourself and donate it so we can call your hard work crap? Otherwise, please give it a rest. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 1:41 PM To: 'Struts Users Mailing List' Subject: RE: Struts Validator Validator is crap; don't waste your time. Mark -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I have a small sample app that works OK but cannot get my main app to work! As far as I can see I have done everything the same as in the sample one. I have noticed that when the sample app that works starts up I get four messages from the ValidatorPlugin the first pair mentions the validation.xml and the validator-rules.xml then later it says ValidatorPlugin initResources then the previous xml messages. With the real app that doesn't work I don't get these second initResources messages. I am not sure if this is significant or not, does anyone have any ideas? I have: - plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in in my struts-config and form name=ValidationType field property=code depends=required arg0 key=validationCode.code/ /field field property=constant depends=required,integer arg0 key=validationCode.constant/ /field /form in my validation.xml validator-rules.xml are default my formbean is extending ValidatorActionForm and my action mapping is action path=/ValidationType name=validationTypeForm input=/jsp/validationtype/validationType.jsp type=com.mycompany.ValidationTypeAction scope=session forward name=Success path=/jsp/success.jsp redirect=true/ forward name=Failure path=/jsp/failure.jsp redirect=true/ /action I am using Struts 1.1 with Tomcat 4.1.24 on XP Can anyone help? Thanks Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator
In the validation.xml file I believe that the validator takes form name=StringWithoutForwardSlash as validate based on form name and form name=/stringWithForwardSlash as validate based on the action name. Meaning that if the validator sees a formbean with the first examples name it does validation and then if it sees an action with same name as the second example it will do validation on the associated form. Anyway, in your example you have your action name with not slash so you would have to have either: form name=/ValidationType...OR form name=ValidationTypeForm You also need to keep in mind that you need to extend ValidationTypeForm must extend ValidatorActionForm to use the action validation and ValidatorForm to use the form validation. -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I have a small sample app that works OK but cannot get my main app to work! As far as I can see I have done everything the same as in the sample one. I have noticed that when the sample app that works starts up I get four messages from the ValidatorPlugin the first pair mentions the validation.xml and the validator-rules.xml then later it says ValidatorPlugin initResources then the previous xml messages. With the real app that doesn't work I don't get these second initResources messages. I am not sure if this is significant or not, does anyone have any ideas? I have: - plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in in my struts-config and form name=ValidationType field property=code depends=required arg0 key=validationCode.code/ /field field property=constant depends=required,integer arg0 key=validationCode.constant/ /field /form in my validation.xml validator-rules.xml are default my formbean is extending ValidatorActionForm and my action mapping is action path=/ValidationType name=validationTypeForm input=/jsp/validationtype/validationType.jsp type=com.mycompany.ValidationTypeAction scope=session forward name=Success path=/jsp/success.jsp redirect=true/ forward name=Failure path=/jsp/failure.jsp redirect=true/ /action I am using Struts 1.1 with Tomcat 4.1.24 on XP Can anyone help? Thanks Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] RE: Struts Validator
Yah, we have weapons. We are NOT forced to resort to the truth. LOL. At 06:21 PM 8/13/2003 -0500, Jeff Kyser wrote: Just threaten to repost [Mark's] String.length() versus array.length mixup. That ought to quiet him down for a while... :) -jeff On Wednesday, August 13, 2003, at 05:55 PM, Micael wrote: I don't know about the rest of you, but I have found this approach generally not to work. It especially does not work on an expert at it. LOL. I would use this on the quiet type, Steve. I think that with Mark you might find it not completely or utterly or wonderfully successful. But , hopefully this time it will also be fun to watch. At 02:02 PM 8/13/2003 -0700, Steve Raeburn wrote: Time to put up or shut up, Mark. If there are specific bugs you have encountered with Validator, please report them via Bugzilla so they can be addressed. (Patches would also be nice). Failing that, why not write something yourself and donate it so we can call your hard work crap? Otherwise, please give it a rest. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 1:41 PM To: 'Struts Users Mailing List' Subject: RE: Struts Validator Validator is crap; don't waste your time. Mark -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I have a small sample app that works OK but cannot get my main app to work! As far as I can see I have done everything the same as in the sample one. I have noticed that when the sample app that works starts up I get four messages from the ValidatorPlugin the first pair mentions the validation.xml and the validator-rules.xml then later it says ValidatorPlugin initResources then the previous xml messages. With the real app that doesn't work I don't get these second initResources messages. I am not sure if this is significant or not, does anyone have any ideas? I have: - plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in in my struts-config and form name=ValidationType field property=code depends=required arg0 key=validationCode.code/ /field field property=constant depends=required,integer arg0 key=validationCode.constant/ /field /form in my validation.xml validator-rules.xml are default my formbean is extending ValidatorActionForm and my action mapping is action path=/ValidationType name=validationTypeForm input=/jsp/validationtype/validationType.jsp type=com.mycompany.ValidationTypeAction scope=session forward name=Success path=/jsp/success.jsp redirect=true/ forward name=Failure path=/jsp/failure.jsp redirect=true/ /action I am using Struts 1.1 with Tomcat 4.1.24 on XP Can anyone help? Thanks Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received
RE: Struts Validator
Time to put up or shut up, Mark. If there are specific bugs you have encountered with Validator, please report them via Bugzilla so they can be addressed. (Patches would also be nice). Failing that, why not write something yourself and donate it so we can call your hard work crap? Otherwise, please give it a rest. Steve -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: August 13, 2003 1:41 PM To: 'Struts Users Mailing List' Subject: RE: Struts Validator Validator is crap; don't waste your time. Mark -Original Message- From: Stephen Bennett [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 11:39 AM To: [EMAIL PROTECTED] Subject: Struts Validator Has anyone had any problems getting the Struts Validator to work? I have a small sample app that works OK but cannot get my main app to work! As far as I can see I have done everything the same as in the sample one. I have noticed that when the sample app that works starts up I get four messages from the ValidatorPlugin the first pair mentions the validation.xml and the validator-rules.xml then later it says ValidatorPlugin initResources then the previous xml messages. With the real app that doesn't work I don't get these second initResources messages. I am not sure if this is significant or not, does anyone have any ideas? I have: - plug-in className=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ /plug-in in my struts-config and form name=ValidationType field property=code depends=required arg0 key=validationCode.code/ /field field property=constant depends=required,integer arg0 key=validationCode.constant/ /field /form in my validation.xml validator-rules.xml are default my formbean is extending ValidatorActionForm and my action mapping is action path=/ValidationType name=validationTypeForm input=/jsp/validationtype/validationType.jsp type=com.mycompany.ValidationTypeAction scope=session forward name=Success path=/jsp/success.jsp redirect=true/ forward name=Failure path=/jsp/failure.jsp redirect=true/ /action I am using Struts 1.1 with Tomcat 4.1.24 on XP Can anyone help? Thanks Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator
You offered this to the OS community with insufficient documentation. Yeah, that's what open source is all about. The hell it is. If it was, OS would still be something geeks twiddle on their own time while earning food money working with software that is properly documented. You won't get anywhere, if your stuff is not properly documented. -TPP - This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, retention, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. Also, email is susceptible to data corruption, interception, tampering, unauthorized amendment and viruses. We only send and receive emails on the basis that we are not liable for any such corruption, interception, tampering, amendment or viruses or any consequence thereof. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator for map backed beans
Hi! Didn't get a chance to check the newsgroup until now. Try: form name=myform field property=value indexedListProperty = value depends= arg0 key=/ /field /form -Original Message- From: Gandle, Panchasheel [mailto:[EMAIL PROTECTED] Sent: August 11, 2003 1:33 PM To: '[EMAIL PROTECTED]' Subject: RE: Struts Validator for map backed beans I have a map-backed bean and the corresponding jsp displays % int n=100; // n can be anything depending on DB data... for (int i=0;in;i++;) { % html:text property=value(codeId%=i%) value=/ % } % I need the validator with just one entry value(codeId) in validation.xml field property=value(codeId) ... and not 100 fields declared in there. field property=value(codeId0) ... field property=value(codeId1) ... . . . field property=value(codeId99) ... Panchasheel -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Monday, August 11, 2003 2:31 PM To: 'Struts Users Mailing List' Subject: RE: Struts Validator for map backed beans Sorry, I'd like to help you. But I don't quite understand what you are asking. What is I have codeId (0n) n varies? If you want to know if you can validate indexed properties, the answer is Yes. See requireiif example on: http://jakarta.apache.org/struts/userGuide/dev_validator.html -Original Message- From: Gandle, Panchasheel [mailto:[EMAIL PROTECTED] Sent: August 11, 2003 8:43 AM To: 'Struts Users Mailing List' Subject: Struts Validator for map backed beans Can anybody confirm that map backed beans don't have validator. like if I have codeId (0n) n varies. On the Jsp I have value(codeId0)...value(codeIdn) the last char n is the last number to validate this , instead of entering n entries in the validation.xml I wanted it to do it with just one entry value(codeId). Does anyone know , if such validation exists, if yes please let me know. or I have already started working on MapValidator. Thanks Panchasheel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator for map backed beans
Sorry, I'd like to help you. But I don't quite understand what you are asking. What is I have codeId (0n) n varies? If you want to know if you can validate indexed properties, the answer is Yes. See requireiif example on: http://jakarta.apache.org/struts/userGuide/dev_validator.html -Original Message- From: Gandle, Panchasheel [mailto:[EMAIL PROTECTED] Sent: August 11, 2003 8:43 AM To: 'Struts Users Mailing List' Subject: Struts Validator for map backed beans Can anybody confirm that map backed beans don't have validator. like if I have codeId (0n) n varies. On the Jsp I have value(codeId0)...value(codeIdn) the last char n is the last number to validate this , instead of entering n entries in the validation.xml I wanted it to do it with just one entry value(codeId). Does anyone know , if such validation exists, if yes please let me know. or I have already started working on MapValidator. Thanks Panchasheel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator Javascript
Didn't know about the bug list, but excuse me for not knowing that, can you drop me the link for the bug-list please. Just for those of you who don't have faith in it, it does work, but needs a little or more fixing and improvement. Overall, I'd say it's a good pretty good infrastructure still needing more care and attention. Currently the only solution I have for myself is coding it myself and hoping to see what comes around in the future releases. And yes, I am special :) my mother told me so. Erez -Original Message- From: Reinhard [mailto:[EMAIL PROTECTED] Sent: Sunday, August 10, 2003 5:40 PM To: Struts Users Mailing List Subject: Re: Struts Validator Javascript ... Am I so special :) ;-) If I remember it well, it's an open issue in the bug-list. cheers Reinhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator Javascript
Keep investigating the problem. If you can come up with new information or a patch, then that will serve as a much more useful reminder than just repeating yourself. I couldn't agree more with this statement. Many reported bugs are poorly described and just left in bugzilla for someone else to figure out. Continuing to pursue the issue and providing patches, ideas, or just more information is critical to the bug getting fixed. David Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Validator Errors - urgent!!
I suggest you write your own JavaScript validations; Validator has many problems. Mark -Original Message- From: sriram [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 11:34 AM To: '[EMAIL PROTECTED]' Subject: Struts Validator Errors - urgent!! H i, This is a repost. I'm in need of a solution to the following problem. Pl. suggest ! I'm tying to incorporate client-side validations using struts validator. I've downloaded all related .jar files and placed them in /WEB-INF/lib. I'm using commons-validator.jar (1.0.2). When I'm trying to display the. jsp page in web browser. it's showing some HTML tags as mentioned below: input type=text n and in the console the exception thrown is: javax.servlet.ServletException: org/apache/struts/util/MessageResources at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageCon textImpl.java:536) And when I remove the statement validator:javascript formName=supportviewForm/ from the .jsp page, it's displayed perfectly in the browser. What could be the reason? Is there any version conflict? When I searched in the forums, I found that this error could be because incorrect version of commons-validator.jar. But I downloaded 1.0.2 and am using that only. And I also tried with html:javascript formName=supportviewForm/ for struts 1.1. When I try to use Struts 1.1, I'm getting errors while deploying: - struts-config_1_1.dtd not found - web-app_2_2.dtd not found Any help is much appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts validator, validating dates with pattern.
hi, use this syntax var var-namedatePatternStrict/var-name var-valuedd/MM//var-value /var -nagi ---Original Message--- From: Struts Users Mailing List Date: Wednesday, June 18, 2003 04:13:45 PM To: [EMAIL PROTECTED] Subject: Struts validator, validating dates with pattern. Hi.I'm using Struts 1.1 RC1 and wants to validate a date in an input field asrequired and date. The part in validation.xml describing the validation is :field property="orderstart" depends="required,date"arg0 key="gameparamForm.orderstart.displayname"/varvar-namedatePattern/var-nameval-valuedd.MM./val-value/var/fieldThe required field triggers, but regardless of value in the date field, thedate validation does not trigger an error message. In the applicationresources file, the errors.date field is populated.Any help is greatly appreciated !Best RegardsEirik Kjølsrud, Norway-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]. IncrediMail - Email has finally evolved - Click Here
Re: Struts validator, validating dates with pattern.
Hi Nagendra, and thanks for your suggestion ! That kinda worked... Using var var-namedatePatternStrict/var-name var-valuedd.MM./var-value /var resulted in the datefield being correctly validated to the dd.MM. format, but I would also like it to allow both these formats of date : 08.11.1976 and 8.11.1976. I believe that the use of datePatternStrict force the use of leading zeros ? How come when I use only datePattern instead of datePatternStrict, nothing is validated ? Best Regards Eirik Kjølsrud -- original message - hi, use this syntax var var-namedatePatternStrict/var-name var-valuedd/MM//var-value /var
Re: struts validator
Also, It looks like Struts run-time does not validate validation.xml against DTD, as a result any typo there are welcome without warnings. This is a problem with commons-validator not validating the xml files. I have been working to fix this but other problems have taken priority. David The problems in the java part of Struts might be solved with any Java IDE, but the problems with XML part becomes a really personal problem of Struts developers. Actually, it was a primary reason we start to develop Struts Studio. Regards, Sergey Smirnov - Exadel Struts Studio - IDE for Struts http://www.exadel.com/strutsStudio - - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 6:32 PM Subject: RE: struts validator Beats me, dude. I struggled with it for 3 days and said enough is enough, and wrote my own validations in my Action classes. If you look through the mail archive, you'll see right off that this is what happens to the majority of people trying to get Validator to work. That's one reason I decided to volunteer over on commons-validator. I've made a major effort to cleanup the validator code so that we can fix bugs faster and make it easier to use. I'm definitely interested in fixing problems you have using it but with a description like, it works sometimes but not others is not very helpful. David Good luck, Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:55 PM To: Struts Users Mailing List; Mark Galbreath Subject: Re: struts validator how can i fix it? On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote: That's because the Validator works by magic and you obviously have a hex in your machine. (sometimes I kill myself) Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:49 AM To: [EMAIL PROTECTED] Subject: struts validator struts validator (client side validation) example is not working in my pc, even the struts example. but it is working with the other pcs in our office. i noticed that when i view the page source there is no javascript generated unlike in the other pc. is there still i have to configure or what? im using struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server and sometimes JBOSS 3.0.6 -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts validator
This was caused by a bug in commons-validator that was fixed some time ago. David hi, Can you please let me know of how do you get rid of this issuse ( i mean setting up the validator so that i need not be connected to the net ) ... Thanks Guru -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: 05 June 2003 10:50 To: Struts Users Mailing List Subject: Re: struts validator I had initial trouble setting up the validator, mainly to do with it not working when you try to validate the dtd with a machine not connected to the net. It didn't give a good error explaining this. However, once I realised this was the problem, and set up the validator properly, it works really well. Especially, if, like me, you are new to javascript! Brian - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, June 05, 2003 5:18 AM Subject: RE: struts validator You know, I just don't get it. I think Validator was a great idea that simply proved wrong in implementation. And I know I am not alone it this assessment. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 12:03 AM To: Struts Users Mailing List Subject: Re: struts validator Like I said, I dont use client-side, and its been pretty smooth sailing for me. Sorry your experience was different, but personally, I like it. Especially defining constants for validation masks and using them over and over on lots of different forms in different projects even. And the requiredif has been pretty handy for a number of cases to boot Of course, there are still cases where I need to go to validate() methods in the actions, but they are less and less, just as I use actual FormBeans less and less, now that i halfway grok DynaValidatorForms... cheers, -jeff On Wednesday, June 4, 2003, at 10:40 PM, Mark Galbreath wrote: yeah, well, DUH! When are you guys going to realize that Validator should never have come out here even in beta. It sucks. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 9:25 PM To: Struts Users Mailing List Subject: Re: struts validator I only did server-side validations, using v1.1b3, until I saw lots of people complaining that v1.1rc1 wasn;t working for client-side validations. I tried it (rc1) and it didn't work for me either. I haven't messed with the nightly builds - just went back to 1.1b3. Its probably been fixed in the latest, but since 1.1rc2 is coming out soon, figure I'll wait until then to check it out again. -jeff On Wednesday, June 4, 2003, at 08:18 PM, Mark Galbreath wrote: Beats me, dude. I struggled with it for 3 days and said enough is enough, and wrote my own validations in my Action classes. If you look through the mail archive, you'll see right off that this is what happens to the majority of people trying to get Validator to work. Good luck, Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:55 PM To: Struts Users Mailing List; Mark Galbreath Subject: Re: struts validator how can i fix it? On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote: That's because the Validator works by magic and you obviously have a hex in your machine. (sometimes I kill myself) Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:49 AM To: [EMAIL PROTECTED] Subject: struts validator struts validator (client side validation) example is not working in my pc, even the struts example. but it is working with the other pcs in our office. i noticed that when i view the page source there is no javascript generated unlike in the other pc. is there still i have to configure or what? im using struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server and sometimes JBOSS 3.0.6 -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e
Re: struts validator
Not sure all this talk of validator is that justifiable. I've had no issues generating both the client side and server side validation, and its saved me a lot of work. Like others i think it would be nice to define form beans and validation rules in the same place but I like it as it is, unless anybody has any alternatives? One thing to consider is that Struts validation is based on commons-validator which reads its own xml config file. Moving the validation configuration to struts-config.xml would require us to do all the validator setup in Struts rather than leveraging the commons-validator code. David Thats my 2 pence.. Mark On Thursday, Jun 5, 2003, at 05:24 Europe/London, Jeff Kyser wrote: So jump in and help David fix it. Otherwise, you're likely to wake up and find a large block of cheddar in your bed. :) On Wednesday, June 4, 2003, at 11:18 PM, Mark Galbreath wrote: You know, I just don't get it. I think Validator was a great idea that simply proved wrong in implementation. And I know I am not alone it this assessment. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 12:03 AM To: Struts Users Mailing List Subject: Re: struts validator Like I said, I dont use client-side, and its been pretty smooth sailing for me. Sorry your experience was different, but personally, I like it. Especially defining constants for validation masks and using them over and over on lots of different forms in different projects even. And the requiredif has been pretty handy for a number of cases to boot Of course, there are still cases where I need to go to validate() methods in the actions, but they are less and less, just as I use actual FormBeans less and less, now that i halfway grok DynaValidatorForms... cheers, -jeff On Wednesday, June 4, 2003, at 10:40 PM, Mark Galbreath wrote: yeah, well, DUH! When are you guys going to realize that Validator should never have come out here even in beta. It sucks. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 9:25 PM To: Struts Users Mailing List Subject: Re: struts validator I only did server-side validations, using v1.1b3, until I saw lots of people complaining that v1.1rc1 wasn;t working for client-side validations. I tried it (rc1) and it didn't work for me either. I haven't messed with the nightly builds - just went back to 1.1b3. Its probably been fixed in the latest, but since 1.1rc2 is coming out soon, figure I'll wait until then to check it out again. -jeff On Wednesday, June 4, 2003, at 08:18 PM, Mark Galbreath wrote: Beats me, dude. I struggled with it for 3 days and said enough is enough, and wrote my own validations in my Action classes. If you look through the mail archive, you'll see right off that this is what happens to the majority of people trying to get Validator to work. Good luck, Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:55 PM To: Struts Users Mailing List; Mark Galbreath Subject: Re: struts validator how can i fix it? On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote: That's because the Validator works by magic and you obviously have a hex in your machine. (sometimes I kill myself) Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:49 AM To: [EMAIL PROTECTED] Subject: struts validator struts validator (client side validation) example is not working in my pc, even the struts example. but it is working with the other pcs in our office. i noticed that when i view the page source there is no javascript generated unlike in the other pc. is there still i have to configure or what? im using struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server and sometimes JBOSS 3.0.6 -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: Re: struts validator
Obviously I can only speak for the multiple projects (both my own and those I've consulted on), various articles and presentations that I've written on the Validator and of course the work that I've done with it while writing the Struts books, but the fact is that the Validator does work. Like other framework components underneath Jakarta, there are versions that have this bug or that bug. In general however, I have found the Validator to do everything that it was designed to do. I can't explain why some have had more trouble than others; it might just be the version of the software they were using at the time. Like many other facets about Struts and its related technologies, it can become unyielding at times, but is manageable. So, for those of you who have yet to try it, dont be afraid. Get yourself a book that covers it, read the docs, search the lists. Whatever you do, dont reinvent the wheel. For lexical or syntactical validation (whether client or server side), the Validator gives you a development boost. You just have to take the time to learn how to use it. Chuck From: David Graham [EMAIL PROTECTED] Date: 2003/06/05 Thu AM 09:50:08 EDT To: [EMAIL PROTECTED] Subject: Re: struts validator Not sure all this talk of validator is that justifiable. I've had no issues generating both the client side and server side validation, and its saved me a lot of work. Like others i think it would be nice to define form beans and validation rules in the same place but I like it as it is, unless anybody has any alternatives? One thing to consider is that Struts validation is based on commons-validator which reads its own xml config file. Moving the validation configuration to struts-config.xml would require us to do all the validator setup in Struts rather than leveraging the commons-validator code. David Thats my 2 pence.. Mark On Thursday, Jun 5, 2003, at 05:24 Europe/London, Jeff Kyser wrote: So jump in and help David fix it. Otherwise, you're likely to wake up and find a large block of cheddar in your bed. :) On Wednesday, June 4, 2003, at 11:18 PM, Mark Galbreath wrote: You know, I just don't get it. I think Validator was a great idea that simply proved wrong in implementation. And I know I am not alone it this assessment. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 12:03 AM To: Struts Users Mailing List Subject: Re: struts validator Like I said, I dont use client-side, and its been pretty smooth sailing for me. Sorry your experience was different, but personally, I like it. Especially defining constants for validation masks and using them over and over on lots of different forms in different projects even. And the requiredif has been pretty handy for a number of cases to boot Of course, there are still cases where I need to go to validate() methods in the actions, but they are less and less, just as I use actual FormBeans less and less, now that i halfway grok DynaValidatorForms... cheers, -jeff On Wednesday, June 4, 2003, at 10:40 PM, Mark Galbreath wrote: yeah, well, DUH! When are you guys going to realize that Validator should never have come out here even in beta. It sucks. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 9:25 PM To: Struts Users Mailing List Subject: Re: struts validator I only did server-side validations, using v1.1b3, until I saw lots of people complaining that v1.1rc1 wasn;t working for client-side validations. I tried it (rc1) and it didn't work for me either. I haven't messed with the nightly builds - just went back to 1.1b3. Its probably been fixed in the latest, but since 1.1rc2 is coming out soon, figure I'll wait until then to check it out again. -jeff On Wednesday, June 4, 2003, at 08:18 PM, Mark Galbreath wrote: Beats me, dude. I struggled with it for 3 days and said enough is enough, and wrote my own validations in my Action classes. If you look through the mail archive, you'll see right off that this is what happens to the majority of people trying to get Validator to work. Good luck, Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:55 PM To: Struts Users Mailing List; Mark Galbreath Subject: Re: struts validator how can i fix it? On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote: That's because the Validator works by magic and you obviously have a hex in your machine. (sometimes I kill myself) Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:49 AM To: [EMAIL PROTECTED] Subject: struts validator struts validator (client side validation) example is not working in my pc, even the struts example
Re: Re: struts validator
I must give Chuck a Kudo here, since the day I read his book review, Strut's validator never fail me. -Dan - Original Message - From: Chuck Cavaness [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, June 05, 2003 8:53 AM Subject: Re: Re: struts validator Obviously I can only speak for the multiple projects (both my own and those I've consulted on), various articles and presentations that I've written on the Validator and of course the work that I've done with it while writing the Struts books, but the fact is that the Validator does work. Like other framework components underneath Jakarta, there are versions that have this bug or that bug. In general however, I have found the Validator to do everything that it was designed to do. I can't explain why some have had more trouble than others; it might just be the version of the software they were using at the time. Like many other facets about Struts and its related technologies, it can become unyielding at times, but is manageable. So, for those of you who have yet to try it, don't be afraid. Get yourself a book that covers it, read the docs, search the lists. Whatever you do, don't reinvent the wheel. For lexical or syntactical validation (whether client or server side), the Validator gives you a development boost. You just have to take the time to learn how to use it. Chuck From: David Graham [EMAIL PROTECTED] Date: 2003/06/05 Thu AM 09:50:08 EDT To: [EMAIL PROTECTED] Subject: Re: struts validator Not sure all this talk of validator is that justifiable. I've had no issues generating both the client side and server side validation, and its saved me a lot of work. Like others i think it would be nice to define form beans and validation rules in the same place but I like it as it is, unless anybody has any alternatives? One thing to consider is that Struts validation is based on commons-validator which reads its own xml config file. Moving the validation configuration to struts-config.xml would require us to do all the validator setup in Struts rather than leveraging the commons-validator code. David Thats my 2 pence.. Mark On Thursday, Jun 5, 2003, at 05:24 Europe/London, Jeff Kyser wrote: So jump in and help David fix it. Otherwise, you're likely to wake up and find a large block of cheddar in your bed. :) On Wednesday, June 4, 2003, at 11:18 PM, Mark Galbreath wrote: You know, I just don't get it. I think Validator was a great idea that simply proved wrong in implementation. And I know I am not alone it this assessment. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 12:03 AM To: Struts Users Mailing List Subject: Re: struts validator Like I said, I dont use client-side, and its been pretty smooth sailing for me. Sorry your experience was different, but personally, I like it. Especially defining constants for validation masks and using them over and over on lots of different forms in different projects even. And the requiredif has been pretty handy for a number of cases to boot Of course, there are still cases where I need to go to validate() methods in the actions, but they are less and less, just as I use actual FormBeans less and less, now that i halfway grok DynaValidatorForms... cheers, -jeff On Wednesday, June 4, 2003, at 10:40 PM, Mark Galbreath wrote: yeah, well, DUH! When are you guys going to realize that Validator should never have come out here even in beta. It sucks. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 9:25 PM To: Struts Users Mailing List Subject: Re: struts validator I only did server-side validations, using v1.1b3, until I saw lots of people complaining that v1.1rc1 wasn;t working for client-side validations. I tried it (rc1) and it didn't work for me either. I haven't messed with the nightly builds - just went back to 1.1b3. Its probably been fixed in the latest, but since 1.1rc2 is coming out soon, figure I'll wait until then to check it out again. -jeff On Wednesday, June 4, 2003, at 08:18 PM, Mark Galbreath wrote: Beats me, dude. I struggled with it for 3 days and said enough is enough, and wrote my own validations in my Action classes. If you look through the mail archive, you'll see right off that this is what happens to the majority of people trying to get Validator to work. Good luck, Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:55 PM To: Struts Users Mailing List; Mark Galbreath Subject: Re: struts validator how can i fix it? On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote: That's because the Validator works
Re: struts validator
Mark Galbreath wrote: You know, I just don't get it. I think Validator was a great idea that simply proved wrong in implementation. And I know I am not alone it this assessment. I've been using the Validator for about two and half years now, and I have to agree, that it does seem to be finicky to setup at first, especially when I move from one implementation to another. One problem may be confusion between the two Validator classes. (One uses the mapping attribute and the other uses the mapping path.) But, once it is in, it works like a charm. It works particularly well with DynaActionForms, since you can then define both the ActionForm properties and their validations in XML. In fact, the only problem is that it doesn't go far enough. What would be truly useful would being able to define both the ValidatorForm attributes and the DynaProperties as part of the same element. For extra credit, you could throw in an attribute to define what type of UI control the form is suppose to use. From there, it's not hard to imagine a tag that could look at this MetaForm and actually write a simple form for you. Update the MetaForm element, and the controls are added and subtracted ... as if by magic =:0) -Ted. -- Ted Husted, Struts in Action http://husted.com/struts/book.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts validator
I had initial trouble setting up the validator, mainly to do with it not working when you try to validate the dtd with a machine not connected to the net. It didn't give a good error explaining this. However, once I realised this was the problem, and set up the validator properly, it works really well. Especially, if, like me, you are new to javascript! Brian - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, June 05, 2003 5:18 AM Subject: RE: struts validator You know, I just don't get it. I think Validator was a great idea that simply proved wrong in implementation. And I know I am not alone it this assessment. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 12:03 AM To: Struts Users Mailing List Subject: Re: struts validator Like I said, I dont use client-side, and its been pretty smooth sailing for me. Sorry your experience was different, but personally, I like it. Especially defining constants for validation masks and using them over and over on lots of different forms in different projects even. And the requiredif has been pretty handy for a number of cases to boot Of course, there are still cases where I need to go to validate() methods in the actions, but they are less and less, just as I use actual FormBeans less and less, now that i halfway grok DynaValidatorForms... cheers, -jeff On Wednesday, June 4, 2003, at 10:40 PM, Mark Galbreath wrote: yeah, well, DUH! When are you guys going to realize that Validator should never have come out here even in beta. It sucks. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 9:25 PM To: Struts Users Mailing List Subject: Re: struts validator I only did server-side validations, using v1.1b3, until I saw lots of people complaining that v1.1rc1 wasn;t working for client-side validations. I tried it (rc1) and it didn't work for me either. I haven't messed with the nightly builds - just went back to 1.1b3. Its probably been fixed in the latest, but since 1.1rc2 is coming out soon, figure I'll wait until then to check it out again. -jeff On Wednesday, June 4, 2003, at 08:18 PM, Mark Galbreath wrote: Beats me, dude. I struggled with it for 3 days and said enough is enough, and wrote my own validations in my Action classes. If you look through the mail archive, you'll see right off that this is what happens to the majority of people trying to get Validator to work. Good luck, Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:55 PM To: Struts Users Mailing List; Mark Galbreath Subject: Re: struts validator how can i fix it? On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote: That's because the Validator works by magic and you obviously have a hex in your machine. (sometimes I kill myself) Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:49 AM To: [EMAIL PROTECTED] Subject: struts validator struts validator (client side validation) example is not working in my pc, even the struts example. but it is working with the other pcs in our office. i noticed that when i view the page source there is no javascript generated unlike in the other pc. is there still i have to configure or what? im using struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server and sometimes JBOSS 3.0.6 -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
RE: struts validator
hi, Can you please let me know of how do you get rid of this issuse ( i mean setting up the validator so that i need not be connected to the net ) ... Thanks Guru -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: 05 June 2003 10:50 To: Struts Users Mailing List Subject: Re: struts validator I had initial trouble setting up the validator, mainly to do with it not working when you try to validate the dtd with a machine not connected to the net. It didn't give a good error explaining this. However, once I realised this was the problem, and set up the validator properly, it works really well. Especially, if, like me, you are new to javascript! Brian - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, June 05, 2003 5:18 AM Subject: RE: struts validator You know, I just don't get it. I think Validator was a great idea that simply proved wrong in implementation. And I know I am not alone it this assessment. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 12:03 AM To: Struts Users Mailing List Subject: Re: struts validator Like I said, I dont use client-side, and its been pretty smooth sailing for me. Sorry your experience was different, but personally, I like it. Especially defining constants for validation masks and using them over and over on lots of different forms in different projects even. And the requiredif has been pretty handy for a number of cases to boot Of course, there are still cases where I need to go to validate() methods in the actions, but they are less and less, just as I use actual FormBeans less and less, now that i halfway grok DynaValidatorForms... cheers, -jeff On Wednesday, June 4, 2003, at 10:40 PM, Mark Galbreath wrote: yeah, well, DUH! When are you guys going to realize that Validator should never have come out here even in beta. It sucks. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 9:25 PM To: Struts Users Mailing List Subject: Re: struts validator I only did server-side validations, using v1.1b3, until I saw lots of people complaining that v1.1rc1 wasn;t working for client-side validations. I tried it (rc1) and it didn't work for me either. I haven't messed with the nightly builds - just went back to 1.1b3. Its probably been fixed in the latest, but since 1.1rc2 is coming out soon, figure I'll wait until then to check it out again. -jeff On Wednesday, June 4, 2003, at 08:18 PM, Mark Galbreath wrote: Beats me, dude. I struggled with it for 3 days and said enough is enough, and wrote my own validations in my Action classes. If you look through the mail archive, you'll see right off that this is what happens to the majority of people trying to get Validator to work. Good luck, Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:55 PM To: Struts Users Mailing List; Mark Galbreath Subject: Re: struts validator how can i fix it? On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote: That's because the Validator works by magic and you obviously have a hex in your machine. (sometimes I kill myself) Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:49 AM To: [EMAIL PROTECTED] Subject: struts validator struts validator (client side validation) example is not working in my pc, even the struts example. but it is working with the other pcs in our office. i noticed that when i view the page source there is no javascript generated unlike in the other pc. is there still i have to configure or what? im using struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server and sometimes JBOSS 3.0.6 -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: struts validator
but my pc is connected to the net. but i have this compilation error no route to host the url of the validation dtd...but my struts-config.dtd works fine. On Thursday 05 June 2003 05:49 pm, Brian McSweeney wrote: I had initial trouble setting up the validator, mainly to do with it not working when you try to validate the dtd with a machine not connected to the net. It didn't give a good error explaining this. However, once I realised this was the problem, and set up the validator properly, it works really well. Especially, if, like me, you are new to javascript! Brian - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, June 05, 2003 5:18 AM Subject: RE: struts validator You know, I just don't get it. I think Validator was a great idea that simply proved wrong in implementation. And I know I am not alone it this assessment. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 12:03 AM To: Struts Users Mailing List Subject: Re: struts validator Like I said, I dont use client-side, and its been pretty smooth sailing for me. Sorry your experience was different, but personally, I like it. Especially defining constants for validation masks and using them over and over on lots of different forms in different projects even. And the requiredif has been pretty handy for a number of cases to boot Of course, there are still cases where I need to go to validate() methods in the actions, but they are less and less, just as I use actual FormBeans less and less, now that i halfway grok DynaValidatorForms... cheers, -jeff On Wednesday, June 4, 2003, at 10:40 PM, Mark Galbreath wrote: yeah, well, DUH! When are you guys going to realize that Validator should never have come out here even in beta. It sucks. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 9:25 PM To: Struts Users Mailing List Subject: Re: struts validator I only did server-side validations, using v1.1b3, until I saw lots of people complaining that v1.1rc1 wasn;t working for client-side validations. I tried it (rc1) and it didn't work for me either. I haven't messed with the nightly builds - just went back to 1.1b3. Its probably been fixed in the latest, but since 1.1rc2 is coming out soon, figure I'll wait until then to check it out again. -jeff On Wednesday, June 4, 2003, at 08:18 PM, Mark Galbreath wrote: Beats me, dude. I struggled with it for 3 days and said enough is enough, and wrote my own validations in my Action classes. If you look through the mail archive, you'll see right off that this is what happens to the majority of people trying to get Validator to work. Good luck, Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:55 PM To: Struts Users Mailing List; Mark Galbreath Subject: Re: struts validator how can i fix it? On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote: That's because the Validator works by magic and you obviously have a hex in your machine. (sometimes I kill myself) Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:49 AM To: [EMAIL PROTECTED] Subject: struts validator struts validator (client side validation) example is not working in my pc, even the struts example. but it is working with the other pcs in our office. i noticed that when i view the page source there is no javascript generated unlike in the other pc. is there still i have to configure or what? im using struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server and sometimes JBOSS 3.0.6 -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: struts validator
I use xdoclet to generate my validator stuff. There is a tag in the strutsvalidationxml/ that allows you to use the dtd or not. I set it there. Not sure how it actually works under the hood though. Sorry :-( Anyone else know? Brian - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 05, 2003 11:00 AM Subject: RE: struts validator hi, Can you please let me know of how do you get rid of this issuse ( i mean setting up the validator so that i need not be connected to the net ) ... Thanks Guru -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: 05 June 2003 10:50 To: Struts Users Mailing List Subject: Re: struts validator I had initial trouble setting up the validator, mainly to do with it not working when you try to validate the dtd with a machine not connected to the net. It didn't give a good error explaining this. However, once I realised this was the problem, and set up the validator properly, it works really well. Especially, if, like me, you are new to javascript! Brian - Original Message - From: Mark Galbreath [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, June 05, 2003 5:18 AM Subject: RE: struts validator You know, I just don't get it. I think Validator was a great idea that simply proved wrong in implementation. And I know I am not alone it this assessment. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 12:03 AM To: Struts Users Mailing List Subject: Re: struts validator Like I said, I dont use client-side, and its been pretty smooth sailing for me. Sorry your experience was different, but personally, I like it. Especially defining constants for validation masks and using them over and over on lots of different forms in different projects even. And the requiredif has been pretty handy for a number of cases to boot Of course, there are still cases where I need to go to validate() methods in the actions, but they are less and less, just as I use actual FormBeans less and less, now that i halfway grok DynaValidatorForms... cheers, -jeff On Wednesday, June 4, 2003, at 10:40 PM, Mark Galbreath wrote: yeah, well, DUH! When are you guys going to realize that Validator should never have come out here even in beta. It sucks. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 9:25 PM To: Struts Users Mailing List Subject: Re: struts validator I only did server-side validations, using v1.1b3, until I saw lots of people complaining that v1.1rc1 wasn;t working for client-side validations. I tried it (rc1) and it didn't work for me either. I haven't messed with the nightly builds - just went back to 1.1b3. Its probably been fixed in the latest, but since 1.1rc2 is coming out soon, figure I'll wait until then to check it out again. -jeff On Wednesday, June 4, 2003, at 08:18 PM, Mark Galbreath wrote: Beats me, dude. I struggled with it for 3 days and said enough is enough, and wrote my own validations in my Action classes. If you look through the mail archive, you'll see right off that this is what happens to the majority of people trying to get Validator to work. Good luck, Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:55 PM To: Struts Users Mailing List; Mark Galbreath Subject: Re: struts validator how can i fix it? On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote: That's because the Validator works by magic and you obviously have a hex in your machine. (sometimes I kill myself) Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:49 AM To: [EMAIL PROTECTED] Subject: struts validator struts validator (client side validation) example is not working in my pc, even the struts example. but it is working with the other pcs in our office. i noticed that when i view the page source there is no javascript generated unlike in the other pc. is there still i have to configure or what? im using struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server and sometimes JBOSS 3.0.6 -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited
Re: struts validator
Not sure all this talk of validator is that justifiable. I've had no issues generating both the client side and server side validation, and its saved me a lot of work. Like others i think it would be nice to define form beans and validation rules in the same place but I like it as it is, unless anybody has any alternatives? Thats my 2 pence.. Mark On Thursday, Jun 5, 2003, at 05:24 Europe/London, Jeff Kyser wrote: So jump in and help David fix it. Otherwise, you're likely to wake up and find a large block of cheddar in your bed. :) On Wednesday, June 4, 2003, at 11:18 PM, Mark Galbreath wrote: You know, I just don't get it. I think Validator was a great idea that simply proved wrong in implementation. And I know I am not alone it this assessment. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 12:03 AM To: Struts Users Mailing List Subject: Re: struts validator Like I said, I dont use client-side, and its been pretty smooth sailing for me. Sorry your experience was different, but personally, I like it. Especially defining constants for validation masks and using them over and over on lots of different forms in different projects even. And the requiredif has been pretty handy for a number of cases to boot Of course, there are still cases where I need to go to validate() methods in the actions, but they are less and less, just as I use actual FormBeans less and less, now that i halfway grok DynaValidatorForms... cheers, -jeff On Wednesday, June 4, 2003, at 10:40 PM, Mark Galbreath wrote: yeah, well, DUH! When are you guys going to realize that Validator should never have come out here even in beta. It sucks. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 9:25 PM To: Struts Users Mailing List Subject: Re: struts validator I only did server-side validations, using v1.1b3, until I saw lots of people complaining that v1.1rc1 wasn;t working for client-side validations. I tried it (rc1) and it didn't work for me either. I haven't messed with the nightly builds - just went back to 1.1b3. Its probably been fixed in the latest, but since 1.1rc2 is coming out soon, figure I'll wait until then to check it out again. -jeff On Wednesday, June 4, 2003, at 08:18 PM, Mark Galbreath wrote: Beats me, dude. I struggled with it for 3 days and said enough is enough, and wrote my own validations in my Action classes. If you look through the mail archive, you'll see right off that this is what happens to the majority of people trying to get Validator to work. Good luck, Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:55 PM To: Struts Users Mailing List; Mark Galbreath Subject: Re: struts validator how can i fix it? On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote: That's because the Validator works by magic and you obviously have a hex in your machine. (sometimes I kill myself) Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:49 AM To: [EMAIL PROTECTED] Subject: struts validator struts validator (client side validation) example is not working in my pc, even the struts example. but it is working with the other pcs in our office. i noticed that when i view the page source there is no javascript generated unlike in the other pc. is there still i have to configure or what? im using struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server and sometimes JBOSS 3.0.6 -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: struts validator
how can i fix it? On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote: That's because the Validator works by magic and you obviously have a hex in your machine. (sometimes I kill myself) Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:49 AM To: [EMAIL PROTECTED] Subject: struts validator struts validator (client side validation) example is not working in my pc, even the struts example. but it is working with the other pcs in our office. i noticed that when i view the page source there is no javascript generated unlike in the other pc. is there still i have to configure or what? im using struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server and sometimes JBOSS 3.0.6 -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts validator
Beats me, dude. I struggled with it for 3 days and said enough is enough, and wrote my own validations in my Action classes. If you look through the mail archive, you'll see right off that this is what happens to the majority of people trying to get Validator to work. Good luck, Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:55 PM To: Struts Users Mailing List; Mark Galbreath Subject: Re: struts validator how can i fix it? On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote: That's because the Validator works by magic and you obviously have a hex in your machine. (sometimes I kill myself) Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:49 AM To: [EMAIL PROTECTED] Subject: struts validator struts validator (client side validation) example is not working in my pc, even the struts example. but it is working with the other pcs in our office. i noticed that when i view the page source there is no javascript generated unlike in the other pc. is there still i have to configure or what? im using struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server and sometimes JBOSS 3.0.6 -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts validator
but its weird though, coz its working with our other pcs...maybe its becoz of the OS...well im not sure! im using redhat 7.3 and the other pcs are redhat 9 On Thursday 05 June 2003 09:25 am, Jeff Kyser wrote: I only did server-side validations, using v1.1b3, until I saw lots of people complaining that v1.1rc1 wasn;t working for client-side validations. I tried it (rc1) and it didn't work for me either. I haven't messed with the nightly builds - just went back to 1.1b3. Its probably been fixed in the latest, but since 1.1rc2 is coming out soon, figure I'll wait until then to check it out again. -jeff On Wednesday, June 4, 2003, at 08:18 PM, Mark Galbreath wrote: Beats me, dude. I struggled with it for 3 days and said enough is enough, and wrote my own validations in my Action classes. If you look through the mail archive, you'll see right off that this is what happens to the majority of people trying to get Validator to work. Good luck, Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:55 PM To: Struts Users Mailing List; Mark Galbreath Subject: Re: struts validator how can i fix it? On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote: That's because the Validator works by magic and you obviously have a hex in your machine. (sometimes I kill myself) Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:49 AM To: [EMAIL PROTECTED] Subject: struts validator struts validator (client side validation) example is not working in my pc, even the struts example. but it is working with the other pcs in our office. i noticed that when i view the page source there is no javascript generated unlike in the other pc. is there still i have to configure or what? im using struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server and sometimes JBOSS 3.0.6 -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts validator
Beats me, dude. I struggled with it for 3 days and said enough is enough, and wrote my own validations in my Action classes. If you look through the mail archive, you'll see right off that this is what happens to the majority of people trying to get Validator to work. That's one reason I decided to volunteer over on commons-validator. I've made a major effort to cleanup the validator code so that we can fix bugs faster and make it easier to use. I'm definitely interested in fixing problems you have using it but with a description like, it works sometimes but not others is not very helpful. David Good luck, Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:55 PM To: Struts Users Mailing List; Mark Galbreath Subject: Re: struts validator how can i fix it? On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote: That's because the Validator works by magic and you obviously have a hex in your machine. (sometimes I kill myself) Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:49 AM To: [EMAIL PROTECTED] Subject: struts validator struts validator (client side validation) example is not working in my pc, even the struts example. but it is working with the other pcs in our office. i noticed that when i view the page source there is no javascript generated unlike in the other pc. is there still i have to configure or what? im using struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server and sometimes JBOSS 3.0.6 -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts validator
David, We are currently inserting validation mechanism support in Exadel Struts Studio, so we tested a difference aspects of Validation in Struts a lot. As a result, I realize that the most significant problem of Validation framework is not bugs that still exist. Most significant problem is an exceptions set. Struts likes to throw exceptions and those exceptions inform user what happen inside Struts framework, but not where the actual problem is located in the user application. Very often exception message follows user away from real problem, so even typo becomes a problem for hours. Also, It looks like Struts run-time does not validate validation.xml against DTD, as a result any typo there are welcome without warnings. The problems in the java part of Struts might be solved with any Java IDE, but the problems with XML part becomes a really personal problem of Struts developers. Actually, it was a primary reason we start to develop Struts Studio. Regards, Sergey Smirnov - Exadel Struts Studio - IDE for Struts http://www.exadel.com/strutsStudio - - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 6:32 PM Subject: RE: struts validator Beats me, dude. I struggled with it for 3 days and said enough is enough, and wrote my own validations in my Action classes. If you look through the mail archive, you'll see right off that this is what happens to the majority of people trying to get Validator to work. That's one reason I decided to volunteer over on commons-validator. I've made a major effort to cleanup the validator code so that we can fix bugs faster and make it easier to use. I'm definitely interested in fixing problems you have using it but with a description like, it works sometimes but not others is not very helpful. David Good luck, Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:55 PM To: Struts Users Mailing List; Mark Galbreath Subject: Re: struts validator how can i fix it? On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote: That's because the Validator works by magic and you obviously have a hex in your machine. (sometimes I kill myself) Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:49 AM To: [EMAIL PROTECTED] Subject: struts validator struts validator (client side validation) example is not working in my pc, even the struts example. but it is working with the other pcs in our office. i noticed that when i view the page source there is no javascript generated unlike in the other pc. is there still i have to configure or what? im using struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server and sometimes JBOSS 3.0.6 -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts validator
yeah, well, DUH! When are you guys going to realize that Validator should never have come out here even in beta. It sucks. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 9:25 PM To: Struts Users Mailing List Subject: Re: struts validator I only did server-side validations, using v1.1b3, until I saw lots of people complaining that v1.1rc1 wasn;t working for client-side validations. I tried it (rc1) and it didn't work for me either. I haven't messed with the nightly builds - just went back to 1.1b3. Its probably been fixed in the latest, but since 1.1rc2 is coming out soon, figure I'll wait until then to check it out again. -jeff On Wednesday, June 4, 2003, at 08:18 PM, Mark Galbreath wrote: Beats me, dude. I struggled with it for 3 days and said enough is enough, and wrote my own validations in my Action classes. If you look through the mail archive, you'll see right off that this is what happens to the majority of people trying to get Validator to work. Good luck, Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:55 PM To: Struts Users Mailing List; Mark Galbreath Subject: Re: struts validator how can i fix it? On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote: That's because the Validator works by magic and you obviously have a hex in your machine. (sometimes I kill myself) Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:49 AM To: [EMAIL PROTECTED] Subject: struts validator struts validator (client side validation) example is not working in my pc, even the struts example. but it is working with the other pcs in our office. i noticed that when i view the page source there is no javascript generated unlike in the other pc. is there still i have to configure or what? im using struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server and sometimes JBOSS 3.0.6 -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts validator
You know, I just don't get it. I think Validator was a great idea that simply proved wrong in implementation. And I know I am not alone it this assessment. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 12:03 AM To: Struts Users Mailing List Subject: Re: struts validator Like I said, I dont use client-side, and its been pretty smooth sailing for me. Sorry your experience was different, but personally, I like it. Especially defining constants for validation masks and using them over and over on lots of different forms in different projects even. And the requiredif has been pretty handy for a number of cases to boot Of course, there are still cases where I need to go to validate() methods in the actions, but they are less and less, just as I use actual FormBeans less and less, now that i halfway grok DynaValidatorForms... cheers, -jeff On Wednesday, June 4, 2003, at 10:40 PM, Mark Galbreath wrote: yeah, well, DUH! When are you guys going to realize that Validator should never have come out here even in beta. It sucks. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 9:25 PM To: Struts Users Mailing List Subject: Re: struts validator I only did server-side validations, using v1.1b3, until I saw lots of people complaining that v1.1rc1 wasn;t working for client-side validations. I tried it (rc1) and it didn't work for me either. I haven't messed with the nightly builds - just went back to 1.1b3. Its probably been fixed in the latest, but since 1.1rc2 is coming out soon, figure I'll wait until then to check it out again. -jeff On Wednesday, June 4, 2003, at 08:18 PM, Mark Galbreath wrote: Beats me, dude. I struggled with it for 3 days and said enough is enough, and wrote my own validations in my Action classes. If you look through the mail archive, you'll see right off that this is what happens to the majority of people trying to get Validator to work. Good luck, Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:55 PM To: Struts Users Mailing List; Mark Galbreath Subject: Re: struts validator how can i fix it? On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote: That's because the Validator works by magic and you obviously have a hex in your machine. (sometimes I kill myself) Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:49 AM To: [EMAIL PROTECTED] Subject: struts validator struts validator (client side validation) example is not working in my pc, even the struts example. but it is working with the other pcs in our office. i noticed that when i view the page source there is no javascript generated unlike in the other pc. is there still i have to configure or what? im using struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server and sometimes JBOSS 3.0.6 -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts validator
So jump in and help David fix it. Otherwise, you're likely to wake up and find a large block of cheddar in your bed. :) On Wednesday, June 4, 2003, at 11:18 PM, Mark Galbreath wrote: You know, I just don't get it. I think Validator was a great idea that simply proved wrong in implementation. And I know I am not alone it this assessment. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 12:03 AM To: Struts Users Mailing List Subject: Re: struts validator Like I said, I dont use client-side, and its been pretty smooth sailing for me. Sorry your experience was different, but personally, I like it. Especially defining constants for validation masks and using them over and over on lots of different forms in different projects even. And the requiredif has been pretty handy for a number of cases to boot Of course, there are still cases where I need to go to validate() methods in the actions, but they are less and less, just as I use actual FormBeans less and less, now that i halfway grok DynaValidatorForms... cheers, -jeff On Wednesday, June 4, 2003, at 10:40 PM, Mark Galbreath wrote: yeah, well, DUH! When are you guys going to realize that Validator should never have come out here even in beta. It sucks. Mark -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 9:25 PM To: Struts Users Mailing List Subject: Re: struts validator I only did server-side validations, using v1.1b3, until I saw lots of people complaining that v1.1rc1 wasn;t working for client-side validations. I tried it (rc1) and it didn't work for me either. I haven't messed with the nightly builds - just went back to 1.1b3. Its probably been fixed in the latest, but since 1.1rc2 is coming out soon, figure I'll wait until then to check it out again. -jeff On Wednesday, June 4, 2003, at 08:18 PM, Mark Galbreath wrote: Beats me, dude. I struggled with it for 3 days and said enough is enough, and wrote my own validations in my Action classes. If you look through the mail archive, you'll see right off that this is what happens to the majority of people trying to get Validator to work. Good luck, Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:55 PM To: Struts Users Mailing List; Mark Galbreath Subject: Re: struts validator how can i fix it? On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote: That's because the Validator works by magic and you obviously have a hex in your machine. (sometimes I kill myself) Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:49 AM To: [EMAIL PROTECTED] Subject: struts validator struts validator (client side validation) example is not working in my pc, even the struts example. but it is working with the other pcs in our office. i noticed that when i view the page source there is no javascript generated unlike in the other pc. is there still i have to configure or what? im using struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server and sometimes JBOSS 3.0.6 -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts validator
You know what, dude? Validator should never have been released in its present form because it sucks. And even the authors know it. Mark -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 9:33 PM To: [EMAIL PROTECTED] Subject: RE: struts validator Beats me, dude. I struggled with it for 3 days and said enough is enough, and wrote my own validations in my Action classes. If you look through the mail archive, you'll see right off that this is what happens to the majority of people trying to get Validator to work. That's one reason I decided to volunteer over on commons-validator. I've made a major effort to cleanup the validator code so that we can fix bugs faster and make it easier to use. I'm definitely interested in fixing problems you have using it but with a description like, it works sometimes but not others is not very helpful. David Good luck, Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:55 PM To: Struts Users Mailing List; Mark Galbreath Subject: Re: struts validator how can i fix it? On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote: That's because the Validator works by magic and you obviously have a hex in your machine. (sometimes I kill myself) Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:49 AM To: [EMAIL PROTECTED] Subject: struts validator struts validator (client side validation) example is not working in my pc, even the struts example. but it is working with the other pcs in our office. i noticed that when i view the page source there is no javascript generated unlike in the other pc. is there still i have to configure or what? im using struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server and sometimes JBOSS 3.0.6 -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts validator
finally, a voice of reason -Original Message- From: Sergey Smirnov [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 10:41 PM To: Struts Users Mailing List Subject: Re: struts validator David, We are currently inserting validation mechanism support in Exadel Struts Studio, so we tested a difference aspects of Validation in Struts a lot. As a result, I realize that the most significant problem of Validation framework is not bugs that still exist. Most significant problem is an exceptions set. Struts likes to throw exceptions and those exceptions inform user what happen inside Struts framework, but not where the actual problem is located in the user application. Very often exception message follows user away from real problem, so even typo becomes a problem for hours. Also, It looks like Struts run-time does not validate validation.xml against DTD, as a result any typo there are welcome without warnings. The problems in the java part of Struts might be solved with any Java IDE, but the problems with XML part becomes a really personal problem of Struts developers. Actually, it was a primary reason we start to develop Struts Studio. Regards, Sergey Smirnov - Exadel Struts Studio - IDE for Struts http://www.exadel.com/strutsStudio - - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 6:32 PM Subject: RE: struts validator Beats me, dude. I struggled with it for 3 days and said enough is enough, and wrote my own validations in my Action classes. If you look through the mail archive, you'll see right off that this is what happens to the majority of people trying to get Validator to work. That's one reason I decided to volunteer over on commons-validator. I've made a major effort to cleanup the validator code so that we can fix bugs faster and make it easier to use. I'm definitely interested in fixing problems you have using it but with a description like, it works sometimes but not others is not very helpful. David Good luck, Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:55 PM To: Struts Users Mailing List; Mark Galbreath Subject: Re: struts validator how can i fix it? On Friday 30 May 2003 08:20 pm, Mark Galbreath wrote: That's because the Validator works by magic and you obviously have a hex in your machine. (sometimes I kill myself) Mark -Original Message- From: Frances Aleah Z. de Guzman [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2003 2:49 AM To: [EMAIL PROTECTED] Subject: struts validator struts validator (client side validation) example is not working in my pc, even the struts example. but it is working with the other pcs in our office. i noticed that when i view the page source there is no javascript generated unlike in the other pc. is there still i have to configure or what? im using struts rc1.1 and j2sdk 1.4.1_02 and tomcat 4.1.24 as the web server and sometimes JBOSS 3.0.6 -- Frances Aleah Z. De Guzman SA/Programmer Ingenium Technology, Inc. http://www.ingenium.com.ph Disclaimer : This message is intended only for the named recipient. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]