RE: Problem in validation requiredif in struts 1.1 that worked fine in Struts 1.1 RC1
Thank you very much, Greg Ludington That must be the reason of failure. But can you advise me whether the validator dtd will be automatically upgraded/comes with Struts1.1 final or I have to change/configure it or not necessary to bother about it i.e there is no relation to it. Please clarify. Thank you very much -Udaya Allu -Original Message- From: Greg Ludington [mailto:[EMAIL PROTECTED] Sent: Sunday, August 17, 2003 11:25 AM To: Udaya Allu; [EMAIL PROTECTED] Subject: RE: Problem in validation requiredif in struts 1.1 that worked fine in Struts 1.1 RC1 The format of the variable names changed before Struts 1.1 final. In your validator, try replacing your var-names field-test[0] and field-value[0] with fieldTest[0] and fieldTest[0], respectively. You can see this format in the example at http://jakarta.apache.org/struts/userGuide/dev_validator.html -Greg Ludington - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem in validation requiredif in struts 1.1 that worked fine in Struts 1.1 RC1
The format of the variable names changed before Struts 1.1 final. In your validator, try replacing your var-names field-test[0] and field-value[0] with fieldTest[0] and fieldTest[0], respectively. You can see this format in the example at http://jakarta.apache.org/struts/userGuide/dev_validator.html -Greg Ludington - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem in validation requiredif in struts 1.1 that worked fine in Struts 1.1 RC1
Hello Dera All, I am resending this request as I could not ascertain whether it is delivered to user group or not -Udaya Dear All, Validation requiredif worked fine in my project when using Struts 1.1 RC1 I upgraded or using now struts 1.1. suddenly the requiredif validation is not working. So much of my validation stopped working. The error is as follows. Please help me. Thank you very much in advance. Caused by: java.lang.NullPointerException at org.apache.struts.validator.FieldChecks.validateRequiredIf(FieldChecks.java:200) ... 43 more 12:01:23,995 ERROR [Validator] reflection: null java.lang.reflect.InvocationTargetException 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:435) at org.apache.commons.validator.Validator.validateField(Validator.java:512) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Validation - requiredif
Ok, it works if I dont use a date field as the field I am trying to check against. So if I use to text fields one is required if the other is not null it works, but it doesn't work if one field is required if the second field is a date and not null. Thanks for your help Jeff. -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 3:01 PM To: Struts Users Mailing List Subject: Re: Validation - requiredif Hey Dale, Scroll back to yesterday morning, about 9:20 CST, there's an example posted for Zsolt that worked for him. regards, -jeff On Tuesday, February 25, 2003, at 03:56 PM, Rieberger, Dale wrote: > Looking for an example of requiredif that is similar to the example on > the struts site but without using an index and using ValidationForm > not DynaValidationForm. If that isn't possible could someone explain > the index example for me. I dont understand the struts-config entries > especially where in talks about Dependent[]. > > Dale Rieberger > > > - > 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: Validation - requiredif
Hey Dale, Scroll back to yesterday morning, about 9:20 CST, there's an example posted for Zsolt that worked for him. regards, -jeff On Tuesday, February 25, 2003, at 03:56 PM, Rieberger, Dale wrote: Looking for an example of requiredif that is similar to the example on the struts site but without using an index and using ValidationForm not DynaValidationForm. If that isn't possible could someone explain the index example for me. I dont understand the struts-config entries especially where in talks about Dependent[]. Dale Rieberger - 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]
Validation - requiredif
Looking for an example of requiredif that is similar to the example on the struts site but without using an index and using ValidationForm not DynaValidationForm. If that isn't possible could someone explain the index example for me. I dont understand the struts-config entries especially where in talks about Dependent[]. Dale Rieberger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]