Re: once again: validate() not called
Hello Laurie, thanks for your answer. I don't know if that will help me, but I'll try it out. Does it make sense to insert interceptor-ref name=workflow param name=includeMethodssave/param /interceptor-ref in my struts.xml ? Will validate() then be called ? Volker Volker Karlmeier wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello struts freaks, i have quite an interesting problem again. In my struts.xml i have defined a method to call for my action (method=save) Every time execute() is called in my action class, the method validate() is executed before. The same action class used with struts.xml-parameter method=save is also executed as expected, but validate is never called before the method save. I think the intention of the interfaces Validatable/ValidationAware is that validate() should be called before the action is executed. This should work using execute() as well as any other method configured in struts.xml with the parameter method=method to call. Perhaps you didn't see my previous reply requesting more information: http://www.nabble.com/Re%3A-Validation-on-methods-p16886534.html interceptor-ref name=validation ~ param name=includeMethodssave/param /interceptor-ref does not work. That's because it's the workflow interceptor, not the validation interceptor, which calls validate(). L. - 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: once again: validate() not called
Insert it where in your struts.xml? By default it shouldn't be necessary, since 'save' is not in the default exclude list, so the answer is that it probably doesn't make sense to insert that. Without seeing your action code, mapping and other related configuration, it's really not possible to advise further. You just haven't provided enough information to guess what's going wrong. L. [EMAIL PROTECTED] wrote: Hello Laurie, thanks for your answer. I don't know if that will help me, but I'll try it out. Does it make sense to insert interceptor-ref name=workflow param name=includeMethodssave/param /interceptor-ref in my struts.xml ? Will validate() then be called ? Volker Volker Karlmeier wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello struts freaks, i have quite an interesting problem again. In my struts.xml i have defined a method to call for my action (method=save) Every time execute() is called in my action class, the method validate() is executed before. The same action class used with struts.xml-parameter method=save is also executed as expected, but validate is never called before the method save. I think the intention of the interfaces Validatable/ValidationAware is that validate() should be called before the action is executed. This should work using execute() as well as any other method configured in struts.xml with the parameter method=method to call. Perhaps you didn't see my previous reply requesting more information: http://www.nabble.com/Re%3A-Validation-on-methods-p16886534.html interceptor-ref name=validation ~ param name=includeMethodssave/param /interceptor-ref does not work. That's because it's the workflow interceptor, not the validation interceptor, which calls validate(). L. - 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]
once again: validate() not called
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello struts freaks, i have quite an interesting problem again. In my struts.xml i have defined a method to call for my action (method=save) Every time execute() is called in my action class, the method validate() is executed before. The same action class used with struts.xml-parameter method=save is also executed as expected, but validate is never called before the method save. I think the intention of the interfaces Validatable/ValidationAware is that validate() should be called before the action is executed. This should work using execute() as well as any other method configured in struts.xml with the parameter method=method to call. interceptor-ref name=validation ~ param name=includeMethodssave/param /interceptor-ref does not work. Any suggestions ? Thanks in advance ~ Volker -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFIF5lYaEMQXBIqssERAvT9AJ4iSJRWu8MLlRt7V0+AApriy7K9OQCgj2js 0Zmn6+7SzBDSZ2nzB/s5gww= =GPw3 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: once again: validate() not called
Volker Karlmeier wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello struts freaks, i have quite an interesting problem again. In my struts.xml i have defined a method to call for my action (method=save) Every time execute() is called in my action class, the method validate() is executed before. The same action class used with struts.xml-parameter method=save is also executed as expected, but validate is never called before the method save. I think the intention of the interfaces Validatable/ValidationAware is that validate() should be called before the action is executed. This should work using execute() as well as any other method configured in struts.xml with the parameter method=method to call. Perhaps you didn't see my previous reply requesting more information: http://www.nabble.com/Re%3A-Validation-on-methods-p16886534.html interceptor-ref name=validation ~ param name=includeMethodssave/param /interceptor-ref does not work. That's because it's the workflow interceptor, not the validation interceptor, which calls validate(). L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error messages doesn't appear if validate is called programatically
Thank you very much Paul. It was a big time save for me. Regards Hakan Paul Benedict [EMAIL PROTECTED] 20/01/2006 04:07 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject Re: error messages doesn't appear if validate is called programatically Hakan, You need to store the error messages in the request or session after you retrieve them: ActionErrors errors = form.validate(); if ((errors != null) !errors.isEmpty()) { saveErrors(request, errors); return mapping.getInputForward(); } Paul __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email may contain privileged/confidential information. You may not copy or disclose this email to anyone without the written permission of the sender. If you have received this email in error please kindly delete this message and notify the sender. Opinions expressed in this email are those of the sender and not necessarily the opinions of the employer. This email and any attached files should be scanned to detect viruses. No liability will be accepted by the employer for loss or damage (whether caused by negligence or not) as a result of email transmission.
error messages doesn't appear if validate is called programatically
Hi, I have started using struts recently. I don't want to use default validation checking so I changed struts-config.xml. . . action path=/SomethingAction ... . . . validate=false . . In the SomethingAction class's execute method I call if (form.validate().size0 ) // forward to input page In auto validation case ( validate=true) error messages I configured appears on Input JSP but if validate=false as I configured above then messages soesn't appear on the Input JSP. Could anyone point me to some documents or provide hint about this problem? Thanks and regards Hakan This email may contain privileged/confidential information. You may not copy or disclose this email to anyone without the written permission of the sender. If you have received this email in error please kindly delete this message and notify the sender. Opinions expressed in this email are those of the sender and not necessarily the opinions of the employer. This email and any attached files should be scanned to detect viruses. No liability will be accepted by the employer for loss or damage (whether caused by negligence or not) as a result of email transmission.
Re: error messages doesn't appear if validate is called programatically
Hakan, You need to store the error messages in the request or session after you retrieve them: ActionErrors errors = form.validate(); if ((errors != null) !errors.isEmpty()) { saveErrors(request, errors); return mapping.getInputForward(); } Paul __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
validate() not called haunts
Hi, Thanks for all the help. Now i have got the debugging working. But still the problem remains, validate() not being called. I tried all combinations...I made a simple action and form without any business logic etc...but i dont understand why validate method is being called in only a single form and not being called for any other forms. Most weird error. Even if I call validate from the corresponding action, it does not get called. However if I rename the validate method by another method e..g update then I can call the update method from action. Is there a way that the action errors created can be shown as error by jsp page ? Heres the code ; **action form.update(mapping,request); // form.validate() doesnt get called so i renamed to update() **form public ActionErrors update(ActionMapping mapping, ServletRequest request) { super.validate(mapping,servlet); errors = new ActionErrors(); if (nullOrBlank(m_location)) { errors.add(Location,new ActionError(errors.location.required)); } return new ActionErrors(); } So basically the action class can get the errors, but how should i display that errors on jsp (This is all because validate() not being called). Jay On 8/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: oh ok I see where you are coming from.. I didn't know about this remote debugging thing so it's good info..:) However, I didn't think the original poster had this situation at all.. or maybe i grossly misunderstood...(been known to happen..;)) Ed Griebel [EMAIL PROTECTED] 08/09/2005 01:43 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called No, not at all, it doesn't matter where tomcat is started from. As long as tomcat was started with JDWP debugging, you can connect up with any recent java debugger. Your tomcat can be in China and your debugging session in NYC, it just doesn't matter, and it certainly doesn't have to be in the same JVM. Try googling for JDWP and/or JPDA, or see http://java.sun.com/products/jpda/ or http://jakarta.apache.org/tomcat/faq/development.html -ed On 8/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Well, not only that, if you want eclipse to play nice with tomcat (and have eclipse obey break points and what not), then you in fact start tomcat from within eclipse, right? I have been doing this for a while now so I don't see what the problem could be..? Would something like this link help: http://plato.acadiau.ca/courses/comp/dsilver/2513/EclipseAndTomcatTutorial/ Geeta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. CONFIDENTIALITY NOTICE:This email is intended solely for the person or entity to which it is addressed and may contain confidential and/or protected health information. Any duplication, dissemination, action taken in reliance upon, or other use of this information by persons or entities other than the intended recipient is prohibited and may violate applicable laws. If this email has been received in error, please notify the sender and delete the information from your system. The views expressed in this email are those of the sender and may not necessarily represent the views of IntelliCare. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: validate() not called haunts
You could manually set the errors in the page within your action with the method addErrors( request , form.update(mapping,request) ); the addErrors method is already defined in the class Action. Jay Sheth wrote: Hi, Thanks for all the help. Now i have got the debugging working. But still the problem remains, validate() not being called. I tried all combinations...I made a simple action and form without any business logic etc...but i dont understand why validate method is being called in only a single form and not being called for any other forms. Most weird error. Even if I call validate from the corresponding action, it does not get called. However if I rename the validate method by another method e..g update then I can call the update method from action. Is there a way that the action errors created can be shown as error by jsp page ? Heres the code ; **action form.update(mapping,request); // form.validate() doesnt get called so i renamed to update() **form public ActionErrors update(ActionMapping mapping, ServletRequest request) { super.validate(mapping,servlet); errors = new ActionErrors(); if (nullOrBlank(m_location)) { errors.add(Location,new ActionError(errors.location.required)); } return new ActionErrors(); } So basically the action class can get the errors, but how should i display that errors on jsp (This is all because validate() not being called). Jay On 8/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: oh ok I see where you are coming from.. I didn't know about this remote debugging thing so it's good info..:) However, I didn't think the original poster had this situation at all.. or maybe i grossly misunderstood...(been known to happen..;)) Ed Griebel [EMAIL PROTECTED] 08/09/2005 01:43 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called No, not at all, it doesn't matter where tomcat is started from. As long as tomcat was started with JDWP debugging, you can connect up with any recent java debugger. Your tomcat can be in China and your debugging session in NYC, it just doesn't matter, and it certainly doesn't have to be in the same JVM. Try googling for JDWP and/or JPDA, or see http://java.sun.com/products/jpda/ or http://jakarta.apache.org/tomcat/faq/development.html -ed On 8/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Well, not only that, if you want eclipse to play nice with tomcat (and have eclipse obey break points and what not), then you in fact start tomcat from within eclipse, right? I have been doing this for a while now so I don't see what the problem could be..? Would something like this link help: http://plato.acadiau.ca/courses/comp/dsilver/2513/EclipseAndTomcatTutorial/ Geeta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. CONFIDENTIALITY NOTICE:This email is intended solely for the person or entity to which it is addressed and may contain confidential and/or protected health information. Any duplication, dissemination, action taken in reliance upon, or other use of this information by persons or entities other than the intended recipient is prohibited and may violate applicable laws. If this email has been received in error, please notify the sender and delete the information from your system. The views expressed in this email are those of the sender and may not necessarily represent the views of IntelliCare. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Gareth Evans MSoft eSolutions Limited Technology Centre Inward Way Rossmore Business Park Ellesmere Port Cheshire CH65 3EN -- Tel:+44 (0)870 0100 704 Fax:+44 (0)870 9010 705 E-Mail: [EMAIL PROTECTED] Web:www.msoft.co.uk -- Terms: Please note that any prices quoted within this e-mail are subject to VAT. All program details and code described in this e-mail are subject to copyright © of MSoft eSolutions Limited and remain the intellectual property of MSoft eSolutions Limited. Any proposal or pricing information contained within this e-mail are subject to MSoft eSolutions' Terms and Conditions -- Disclaimer: This message is intended only for use of the addressee. If this message was sent to you in error, please notify the sender and delete this message. MSoft eSolutions Limited cannot accept responsibility for viruses, so
Re: {Spam?} Re: validate() not called haunts
Gareth Evans [EMAIL PROTECTED] wrote on 08/10/2005 10:28:31 AM: You could manually set the errors in the page within your action with the method addErrors( request , form.update(mapping,request) ); the addErrors method is already defined in the class Action. It is saveErrors(request,..etc. isn't it? Also, I think you're supposed to ActionMessages instead of ActionErrors.. Geeta
validate() finally called !!!!!!!
Hi, Thanks for all the help. Any1 wont believe what a silly mistake. I forgot to add the html:errors / tag in the jsp page. I found out by when reading doc for the addErrors(). Thanks once again. Jay On 8/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Gareth Evans [EMAIL PROTECTED] wrote on 08/10/2005 10:28:31 AM: You could manually set the errors in the page within your action with the method addErrors( request , form.update(mapping,request) ); the addErrors method is already defined in the class Action. It is saveErrors(request,..etc. isn't it? Also, I think you're supposed to ActionMessages instead of ActionErrors.. Geeta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: validate() not called haunts
p. Now i have got the debugging working. But Since debugging is working, try catching a breakpoint where validate is being called, then step-into... My best guess is the method signatures need to be verified. INO, are you overridding validate or overloading? You may be invoking the superclass validate instead of the intended forms' validate. If all else fails, place a breakpoint/sys.out in Struts' ActionForm.validate to see if it's getting there. Happy debugging, Duane -Original Message- From: Jay Sheth [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 10, 2005 9:23 AM To: Struts Users Mailing List Subject: validate() not called haunts Hi, Thanks for all the help. Now i have got the debugging working. But still the problem remains, validate() not being called. I tried all combinations...I made a simple action and form without any business logic etc...but i dont understand why validate method is being called in only a single form and not being called for any other forms. Most weird error. Even if I call validate from the corresponding action, it does not get called. However if I rename the validate method by another method e..g update then I can call the update method from action. Is there a way that the action errors created can be shown as error by jsp page ? Heres the code ; **action form.update(mapping,request); // form.validate() doesnt get called so i renamed to update() **form public ActionErrors update(ActionMapping mapping, ServletRequest request) { super.validate(mapping,servlet); errors = new ActionErrors(); if (nullOrBlank(m_location)) { errors.add(Location,new ActionError(errors.location.required)); } return new ActionErrors(); } So basically the action class can get the errors, but how should i display that errors on jsp (This is all because validate() not being called). Jay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: {Spam?} RE: validate() not called haunts
That's right!!! I mean about the method signature!! I meant to write that to you and then something else intervened and i forgot.. Yes, so do that and let us know..:) Geeta Duane Rosengartner [EMAIL PROTECTED] wrote on 08/10/2005 02:51:42 PM: p. Now i have got the debugging working. But Since debugging is working, try catching a breakpoint where validate is being called, then step-into... My best guess is the method signatures need to be verified. INO, are you overridding validate or overloading? You may be invoking the superclass validate instead of the intended forms' validate. If all else fails, place a breakpoint/sys.out in Struts' ActionForm.validate to see if it's getting there. Happy debugging, Duane -Original Message- From: Jay Sheth [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 10, 2005 9:23 AM To: Struts Users Mailing List Subject: validate() not called haunts Hi, Thanks for all the help. Now i have got the debugging working. But still the problem remains, validate() not being called. I tried all combinations...I made a simple action and form without any business logic etc...but i dont understand why validate method is being called in only a single form and not being called for any other forms. Most weird error. Even if I call validate from the corresponding action, it does not get called. However if I rename the validate method by another method e..g update then I can call the update method from action. Is there a way that the action errors created can be shown as error by jsp page ? Heres the code ; **action form.update(mapping,request); // form.validate() doesnt get called so i renamed to update() **form public ActionErrors update(ActionMapping mapping, ServletRequest request) { super.validate(mapping,servlet); errors = new ActionErrors(); if (nullOrBlank(m_location)) { errors.add(Location,new ActionError(errors.location.required)); } return new ActionErrors(); } So basically the action class can get the errors, but how should i display that errors on jsp (This is all because validate() not being called). Jay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. CONFIDENTIALITY NOTICE:This email is intended solely for the person or entity to which it is addressed and may contain confidential and/or protected health information. Any duplication, dissemination, action taken in reliance upon, or other use of this information by persons or entities other than the intended recipient is prohibited and may violate applicable laws. If this email has been received in error, please notify the sender and delete the information from your system. The views expressed in this email are those of the sender and may not necessarily represent the views of IntelliCare.
RE: validate() not called haunts
well, I have given up on calling the validate(), I have checked method sign etc... now i am renaming the validate to another method name e.g. validate_fields. I am calling the validate_fields from action. and using addErrors in action to add messages to jsp. Thanks, Jay On 8/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: That's right!!! I mean about the method signature!! I meant to write that to you and then something else intervened and i forgot.. Yes, so do that and let us know..:) Geeta Duane Rosengartner [EMAIL PROTECTED] wrote on 08/10/2005 02:51:42 PM: p. Now i have got the debugging working. But Since debugging is working, try catching a breakpoint where validate is being called, then step-into... My best guess is the method signatures need to be verified. INO, are you overridding validate or overloading? You may be invoking the superclass validate instead of the intended forms' validate. If all else fails, place a breakpoint/sys.out in Struts' ActionForm.validate to see if it's getting there. Happy debugging, Duane -Original Message- From: Jay Sheth [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 10, 2005 9:23 AM To: Struts Users Mailing List Subject: validate() not called haunts Hi, Thanks for all the help. Now i have got the debugging working. But still the problem remains, validate() not being called. I tried all combinations...I made a simple action and form without any business logic etc...but i dont understand why validate method is being called in only a single form and not being called for any other forms. Most weird error. Even if I call validate from the corresponding action, it does not get called. However if I rename the validate method by another method e..g update then I can call the update method from action. Is there a way that the action errors created can be shown as error by jsp page ? Heres the code ; **action form.update(mapping,request); // form.validate() doesnt get called so i renamed to update() **form public ActionErrors update(ActionMapping mapping, ServletRequest request) { super.validate(mapping,servlet); errors = new ActionErrors(); if (nullOrBlank(m_location)) { errors.add(Location,new ActionError(errors.location.required)); } return new ActionErrors(); } So basically the action class can get the errors, but how should i display that errors on jsp (This is all because validate() not being called). Jay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. CONFIDENTIALITY NOTICE:This email is intended solely for the person or entity to which it is addressed and may contain confidential and/or protected health information. Any duplication, dissemination, action taken in reliance upon, or other use of this information by persons or entities other than the intended recipient is prohibited and may violate applicable laws. If this email has been received in error, please notify the sender and delete the information from your system. The views expressed in this email are those of the sender and may not necessarily represent the views of IntelliCare. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Re: validate() not called haunts
That was a good link - thanks! Re. the Spam thing, i really do apologize. I totally understand because it probably bugs me more than it bugs anybody else. We are supposed to use Lotus notes for mail in our company and I absolutely *hate* it. This spam thing is just one more annoying feature. I guess I can look into it, but I have a feeling I'll get nowhere.. Only thing I can do is remember to manually remove it from the subject every time I write, or just use another mail client. But that's another can of worms... Sorry about the rant, but it's a sore point with me. I'll look into it tomorrow.. Geeta Jeff Beal [EMAIL PROTECTED] wrote on 08/10/2005 04:04:45 PM: addErrors() is a new method in 1.2.7. addErrors() and addMessages() are both valid, and both accept ActionMessages as arguments. For more on the difference between ActionErrors and ActionMessages, see http://wiki.apache.org/struts/ActionErrorsAndActionMessages. Also, please get rid of the 'Re: {Spam?}' in your subject lines. It's annoying in general, but also causes GMail to think you are starting a new Conversation. I imagine that other mail readers have similar issues. -- Jeff On 8/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Gareth Evans [EMAIL PROTECTED] wrote on 08/10/2005 10:28:31 AM: You could manually set the errors in the page within your action with the method addErrors( request , form.update(mapping,request) ); the addErrors method is already defined in the class Action. It is saveErrors(request,..etc. isn't it? Also, I think you're supposed to ActionMessages instead of ActionErrors.. Geeta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. CONFIDENTIALITY NOTICE:This email is intended solely for the person or entity to which it is addressed and may contain confidential and/or protected health information. Any duplication, dissemination, action taken in reliance upon, or other use of this information by persons or entities other than the intended recipient is prohibited and may violate applicable laws. If this email has been received in error, please notify the sender and delete the information from your system. The views expressed in this email are those of the sender and may not necessarily represent the views of IntelliCare.
Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called
HI, I have a problem here too. I dont understand how to configure this for tomcat5.5.9 which uses the UI for running it. The link which you mentioned has remedy for older tomcat, which uses files for configuration. Any help would be great. Jay On 8/8/05, Ed Griebel [EMAIL PROTECTED] wrote: You don't need to have tomcat work with eclipse to debug action classes. All you need is to make changes to the tomcat startup file to enable JDWP debugging on a socket, and then tell eclipse to start debugging at the socket and hostname if on a different host or localhost if same box. Set a breakpoint in your project's source, and you'll be all set. see the first few links here: http://www.google.com/search?q=xrunjdwp+tomcat -ed On 8/8/05, Jay Sheth [EMAIL PROTECTED] wrote: I cannot do that, since the 2 forms are having different fields. Somehow the tomcat 5.5.9 doesnt work with eclipse for my project. I am using ui to start tomcat. thanks anyways. Jay On 8/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Do you use an IDE for development? Like eclipse or something? If you don't, I would suggest you do because then you could set breakpoints and debug that way.. System.out.printlns aren't the best way to debug - as you are probably finding out..:) One more thing you could do is the following: change the MaintainRecurringTasksPageForm in struts-config.xml to also point to tasks.form.UpdateOverridePageForm. Restart to ensure you change took and try again. Do you hit the validate method now? Jay Sheth [EMAIL PROTECTED] 08/08/2005 04:12 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} Re: {Spam?} validate() not called checked that... form-bean name=MaintainRecurringTasksPageForm type=tasks.form.MaintainRecurringTasksPageForm/ form-bean name=UpdateOverridePageForm type=tasks.form.UpdateOverridePageForm/ Any other hints ? Is there a way to debug or something...? Just one more thing to tell...I have mapped the form for updateoverridepageform in validation.xml but not mapped maintain**form. Even if i map that doesnt help... I think there is some other mistake...but hard to find...any other hints would help. Jay On 8/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Jay: So the form beans you are using in both cases are different. So are you sure these two form bean names are mapped to the correct classes in your struts-config.xml? i.e. check what form-bean name=UpdateOverridePageForm.. and form-bean name=MaintainRecurringTasksPageForm.. map to and see if you haven't made a mistake there.. hth, Geeta Jay Sheth [EMAIL PROTECTED] 08/08/2005 03:57 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} validate() not called I am using the system.out. in both classes validate() and checking it out. The working codes struts config class: action path=/updateOverride type=tasks.action.UpdateOverridePageAction scope=request name=UpdateOverridePageForm attribute=UpdateOverridePageForm parameter=updateOverride validate=true input=/jsp/tasks/UpdateOverridePage.jsp forward name=success path=/jsp/tasks/UpdateOverridePage.jsp / /action public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { // TODO Auto-generated method stub ActionErrors errors = super.validate(mapping, request); System.out.println(validate in update called); -- This does come in the logs. The not working code : action path=/maintainRecurringTasks type=tasks.action.MaintainRecurringTasksPageAction scope=request name=MaintainRecurringTasksPageForm attribute=MaintainRecurringTasksPageForm parameter=maintainRecurringTasks validate=true forward name=success path=/jsp/tasks/MaintainRecurringTasks.jsp / /action public ActionErrors validate(ActionMapping mapping, ServletRequest request) { // TODO Auto-generated method stub ActionErrors errors = super.validate(mapping, request
Re: {Spam?} validate() not called
So what is the problem you are having? I am using eclipse and tomcat 5.5.9 just fine...? Geeta Jay Sheth [EMAIL PROTECTED] 08/09/2005 01:10 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called HI, I have a problem here too. I dont understand how to configure this for tomcat5.5.9 which uses the UI for running it. The link which you mentioned has remedy for older tomcat, which uses files for configuration. Any help would be great. Jay On 8/8/05, Ed Griebel [EMAIL PROTECTED] wrote: You don't need to have tomcat work with eclipse to debug action classes. All you need is to make changes to the tomcat startup file to enable JDWP debugging on a socket, and then tell eclipse to start debugging at the socket and hostname if on a different host or localhost if same box. Set a breakpoint in your project's source, and you'll be all set. see the first few links here: http://www.google.com/search?q=xrunjdwp+tomcat -ed On 8/8/05, Jay Sheth [EMAIL PROTECTED] wrote: I cannot do that, since the 2 forms are having different fields. Somehow the tomcat 5.5.9 doesnt work with eclipse for my project. I am using ui to start tomcat. thanks anyways. Jay On 8/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Do you use an IDE for development? Like eclipse or something? If you don't, I would suggest you do because then you could set breakpoints and debug that way.. System.out.printlns aren't the best way to debug - as you are probably finding out..:) One more thing you could do is the following: change the MaintainRecurringTasksPageForm in struts-config.xml to also point to tasks.form.UpdateOverridePageForm. Restart to ensure you change took and try again. Do you hit the validate method now? Jay Sheth [EMAIL PROTECTED] 08/08/2005 04:12 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} Re: {Spam?} validate() not called checked that... form-bean name=MaintainRecurringTasksPageForm type=tasks.form.MaintainRecurringTasksPageForm/ form-bean name=UpdateOverridePageForm type=tasks.form.UpdateOverridePageForm/ Any other hints ? Is there a way to debug or something...? Just one more thing to tell...I have mapped the form for updateoverridepageform in validation.xml but not mapped maintain**form. Even if i map that doesnt help... I think there is some other mistake...but hard to find...any other hints would help. Jay On 8/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Jay: So the form beans you are using in both cases are different. So are you sure these two form bean names are mapped to the correct classes in your struts-config.xml? i.e. check what form-bean name=UpdateOverridePageForm.. and form-bean name=MaintainRecurringTasksPageForm.. map to and see if you haven't made a mistake there.. hth, Geeta Jay Sheth [EMAIL PROTECTED] 08/08/2005 03:57 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} validate() not called I am using the system.out. in both classes validate() and checking it out. The working codes struts config class: action path=/updateOverride type=tasks.action.UpdateOverridePageAction scope=request name=UpdateOverridePageForm attribute=UpdateOverridePageForm parameter=updateOverride validate=true input=/jsp/tasks/UpdateOverridePage.jsp forward name=success path=/jsp/tasks/UpdateOverridePage.jsp / /action public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { // TODO Auto-generated method stub ActionErrors errors = super.validate(mapping, request); System.out.println(validate in update called); -- This does come in the logs. The not working code : action path=/maintainRecurringTasks type=tasks.action.MaintainRecurringTasksPageAction scope=request name=MaintainRecurringTasksPageForm attribute=MaintainRecurringTasksPageForm parameter=maintainRecurringTasks validate=true forward name=success
Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called
I haven't used 5.5.9, but my guess is that the gui is just a pointy-clicky front end for some scripts and one can still launch it with a shell script or batch file. Maybe take a look in tomcat_home/bin for launcher scripts. On 8/9/05, Jay Sheth [EMAIL PROTECTED] wrote: HI, I have a problem here too. I dont understand how to configure this for tomcat5.5.9 which uses the UI for running it. The link which you mentioned has remedy for older tomcat, which uses files for configuration. Any help would be great. Jay On 8/8/05, Ed Griebel [EMAIL PROTECTED] wrote: You don't need to have tomcat work with eclipse to debug action classes. All you need is to make changes to the tomcat startup file to enable JDWP debugging on a socket, and then tell eclipse to start debugging at the socket and hostname if on a different host or localhost if same box. Set a breakpoint in your project's source, and you'll be all set. see the first few links here: http://www.google.com/search?q=xrunjdwp+tomcat -ed On 8/8/05, Jay Sheth [EMAIL PROTECTED] wrote: I cannot do that, since the 2 forms are having different fields. Somehow the tomcat 5.5.9 doesnt work with eclipse for my project. I am using ui to start tomcat. thanks anyways. Jay On 8/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Do you use an IDE for development? Like eclipse or something? If you don't, I would suggest you do because then you could set breakpoints and debug that way.. System.out.printlns aren't the best way to debug - as you are probably finding out..:) One more thing you could do is the following: change the MaintainRecurringTasksPageForm in struts-config.xml to also point to tasks.form.UpdateOverridePageForm. Restart to ensure you change took and try again. Do you hit the validate method now? Jay Sheth [EMAIL PROTECTED] 08/08/2005 04:12 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} Re: {Spam?} validate() not called checked that... form-bean name=MaintainRecurringTasksPageForm type=tasks.form.MaintainRecurringTasksPageForm/ form-bean name=UpdateOverridePageForm type=tasks.form.UpdateOverridePageForm/ Any other hints ? Is there a way to debug or something...? Just one more thing to tell...I have mapped the form for updateoverridepageform in validation.xml but not mapped maintain**form. Even if i map that doesnt help... I think there is some other mistake...but hard to find...any other hints would help. Jay On 8/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Jay: So the form beans you are using in both cases are different. So are you sure these two form bean names are mapped to the correct classes in your struts-config.xml? i.e. check what form-bean name=UpdateOverridePageForm.. and form-bean name=MaintainRecurringTasksPageForm.. map to and see if you haven't made a mistake there.. hth, Geeta Jay Sheth [EMAIL PROTECTED] 08/08/2005 03:57 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} validate() not called I am using the system.out. in both classes validate() and checking it out. The working codes struts config class: action path=/updateOverride type=tasks.action.UpdateOverridePageAction scope=request name=UpdateOverridePageForm attribute=UpdateOverridePageForm parameter=updateOverride validate=true input=/jsp/tasks/UpdateOverridePage.jsp forward name=success path=/jsp/tasks/UpdateOverridePage.jsp / /action public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { // TODO Auto-generated method stub ActionErrors errors = super.validate(mapping, request); System.out.println(validate in update called); -- This does come in the logs. The not working code : action path=/maintainRecurringTasks type=tasks.action.MaintainRecurringTasksPageAction scope=request name=MaintainRecurringTasksPageForm attribute=MaintainRecurringTasksPageForm parameter
Re: {Spam?} Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called
Well, not only that, if you want eclipse to play nice with tomcat (and have eclipse obey break points and what not), then you in fact start tomcat from within eclipse, right? I have been doing this for a while now so I don't see what the problem could be..? Would something like this link help: http://plato.acadiau.ca/courses/comp/dsilver/2513/EclipseAndTomcatTutorial/ Geeta Ed Griebel [EMAIL PROTECTED] 08/09/2005 01:26 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called I haven't used 5.5.9, but my guess is that the gui is just a pointy-clicky front end for some scripts and one can still launch it with a shell script or batch file. Maybe take a look in tomcat_home/bin for launcher scripts. On 8/9/05, Jay Sheth [EMAIL PROTECTED] wrote: HI, I have a problem here too. I dont understand how to configure this for tomcat5.5.9 which uses the UI for running it. The link which you mentioned has remedy for older tomcat, which uses files for configuration. Any help would be great. Jay On 8/8/05, Ed Griebel [EMAIL PROTECTED] wrote: You don't need to have tomcat work with eclipse to debug action classes. All you need is to make changes to the tomcat startup file to enable JDWP debugging on a socket, and then tell eclipse to start debugging at the socket and hostname if on a different host or localhost if same box. Set a breakpoint in your project's source, and you'll be all set. see the first few links here: http://www.google.com/search?q=xrunjdwp+tomcat -ed On 8/8/05, Jay Sheth [EMAIL PROTECTED] wrote: I cannot do that, since the 2 forms are having different fields. Somehow the tomcat 5.5.9 doesnt work with eclipse for my project. I am using ui to start tomcat. thanks anyways. Jay On 8/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Do you use an IDE for development? Like eclipse or something? If you don't, I would suggest you do because then you could set breakpoints and debug that way.. System.out.printlns aren't the best way to debug - as you are probably finding out..:) One more thing you could do is the following: change the MaintainRecurringTasksPageForm in struts-config.xml to also point to tasks.form.UpdateOverridePageForm. Restart to ensure you change took and try again. Do you hit the validate method now? Jay Sheth [EMAIL PROTECTED] 08/08/2005 04:12 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} Re: {Spam?} validate() not called checked that... form-bean name=MaintainRecurringTasksPageForm type=tasks.form.MaintainRecurringTasksPageForm/ form-bean name=UpdateOverridePageForm type=tasks.form.UpdateOverridePageForm/ Any other hints ? Is there a way to debug or something...? Just one more thing to tell...I have mapped the form for updateoverridepageform in validation.xml but not mapped maintain**form. Even if i map that doesnt help... I think there is some other mistake...but hard to find...any other hints would help. Jay On 8/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Jay: So the form beans you are using in both cases are different. So are you sure these two form bean names are mapped to the correct classes in your struts-config.xml? i.e. check what form-bean name=UpdateOverridePageForm.. and form-bean name=MaintainRecurringTasksPageForm.. map to and see if you haven't made a mistake there.. hth, Geeta Jay Sheth [EMAIL PROTECTED] 08/08/2005 03:57 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} validate() not called I am using the system.out. in both classes validate() and checking it out. The working codes struts config class: action path=/updateOverride type=tasks.action.UpdateOverridePageAction scope=request name=UpdateOverridePageForm attribute=UpdateOverridePageForm parameter=updateOverride validate=true input=/jsp/tasks/UpdateOverridePage.jsp forward name=success path=/jsp/tasks/UpdateOverridePage.jsp / /action public ActionErrors validate(ActionMapping mapping, HttpServletRequest request
Re: {Spam?} Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called
No, not at all, it doesn't matter where tomcat is started from. As long as tomcat was started with JDWP debugging, you can connect up with any recent java debugger. Your tomcat can be in China and your debugging session in NYC, it just doesn't matter, and it certainly doesn't have to be in the same JVM. Try googling for JDWP and/or JPDA, or see http://java.sun.com/products/jpda/ or http://jakarta.apache.org/tomcat/faq/development.html -ed On 8/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Well, not only that, if you want eclipse to play nice with tomcat (and have eclipse obey break points and what not), then you in fact start tomcat from within eclipse, right? I have been doing this for a while now so I don't see what the problem could be..? Would something like this link help: http://plato.acadiau.ca/courses/comp/dsilver/2513/EclipseAndTomcatTutorial/ Geeta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: {Spam?} Re: {Spam?} Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called
oh ok I see where you are coming from.. I didn't know about this remote debugging thing so it's good info..:) However, I didn't think the original poster had this situation at all.. or maybe i grossly misunderstood...(been known to happen..;)) Ed Griebel [EMAIL PROTECTED] 08/09/2005 01:43 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called No, not at all, it doesn't matter where tomcat is started from. As long as tomcat was started with JDWP debugging, you can connect up with any recent java debugger. Your tomcat can be in China and your debugging session in NYC, it just doesn't matter, and it certainly doesn't have to be in the same JVM. Try googling for JDWP and/or JPDA, or see http://java.sun.com/products/jpda/ or http://jakarta.apache.org/tomcat/faq/development.html -ed On 8/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Well, not only that, if you want eclipse to play nice with tomcat (and have eclipse obey break points and what not), then you in fact start tomcat from within eclipse, right? I have been doing this for a while now so I don't see what the problem could be..? Would something like this link help: http://plato.acadiau.ca/courses/comp/dsilver/2513/EclipseAndTomcatTutorial/ Geeta - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. CONFIDENTIALITY NOTICE:This email is intended solely for the person or entity to which it is addressed and may contain confidential and/or protected health information. Any duplication, dissemination, action taken in reliance upon, or other use of this information by persons or entities other than the intended recipient is prohibited and may violate applicable laws. If this email has been received in error, please notify the sender and delete the information from your system. The views expressed in this email are those of the sender and may not necessarily represent the views of IntelliCare.
validate() not called
Hi, I am trying to use the validate() by extending the org.apache.struts.validator.ValidatorForm class. The problem is that the validate() is being called for one form class which I have created, however it is not being called for another similar form class. There are no errors which compiling etc...so i dont get to know why it is not being called. Any hints on how to debug as to why it is not called ? The snippet struts-config.xml is : action path=/maintainRecurringTasks type=tasks.action.MaintainRecurringTasksPageAction scope=request name=MaintainRecurringTasksPageForm attribute=MaintainRecurringTasksPageForm parameter=maintainRecurringTasks validate=true forward name=success path=/jsp/tasks/MaintainRecurringTasks.jsp / /action Thanks, Jay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: {Spam?} validate() not called
Hi Jay, So how do you know that validate() isn't being called? Have you placed a break point in your validate and execute methods? Can you send us the snippets from struts-config.xml for both the classes and tell us which works and which doesn't? Geeta Jay Sheth [EMAIL PROTECTED] 08/08/2005 03:31 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} validate() not called Hi, I am trying to use the validate() by extending the org.apache.struts.validator.ValidatorForm class. The problem is that the validate() is being called for one form class which I have created, however it is not being called for another similar form class. There are no errors which compiling etc...so i dont get to know why it is not being called. Any hints on how to debug as to why it is not called ? The snippet struts-config.xml is : action path=/maintainRecurringTasks type=tasks.action.MaintainRecurringTasksPageAction scope=request name=MaintainRecurringTasksPageForm attribute=MaintainRecurringTasksPageForm parameter=maintainRecurringTasks validate=true forward name=success path=/jsp/tasks/MaintainRecurringTasks.jsp / /action Thanks, Jay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. CONFIDENTIALITY NOTICE:This email is intended solely for the person or entity to which it is addressed and may contain confidential and/or protected health information. Any duplication, dissemination, action taken in reliance upon, or other use of this information by persons or entities other than the intended recipient is prohibited and may violate applicable laws. If this email has been received in error, please notify the sender and delete the information from your system. The views expressed in this email are those of the sender and may not necessarily represent the views of IntelliCare.
Re: {Spam?} validate() not called
I am using the system.out. in both classes validate() and checking it out. The working codes struts config class: action path=/updateOverride type=tasks.action.UpdateOverridePageAction scope=request name=UpdateOverridePageForm attribute=UpdateOverridePageForm parameter=updateOverride validate=true input=/jsp/tasks/UpdateOverridePage.jsp forward name=success path=/jsp/tasks/UpdateOverridePage.jsp / /action public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { // TODO Auto-generated method stub ActionErrors errors = super.validate(mapping, request); System.out.println(validate in update called); -- This does come in the logs. The not working code : action path=/maintainRecurringTasks type=tasks.action.MaintainRecurringTasksPageAction scope=request name=MaintainRecurringTasksPageForm attribute=MaintainRecurringTasksPageForm parameter=maintainRecurringTasks validate=true forward name=success path=/jsp/tasks/MaintainRecurringTasks.jsp / /action public ActionErrors validate(ActionMapping mapping, ServletRequest request) { // TODO Auto-generated method stub ActionErrors errors = super.validate(mapping, request); System.out.println(validate in main tain called ); ...basically the same. Even though I use input=/jsp/tasks/MaintainOverridePage.jsp it does not help. Basically some silly mistake which i dont understand. Jay On 8/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Jay, So how do you know that validate() isn't being called? Have you placed a break point in your validate and execute methods? Can you send us the snippets from struts-config.xml for both the classes and tell us which works and which doesn't? Geeta Jay Sheth [EMAIL PROTECTED] 08/08/2005 03:31 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} validate() not called Hi, I am trying to use the validate() by extending the org.apache.struts.validator.ValidatorForm class. The problem is that the validate() is being called for one form class which I have created, however it is not being called for another similar form class. There are no errors which compiling etc...so i dont get to know why it is not being called. Any hints on how to debug as to why it is not called ? The snippet struts-config.xml is : action path=/maintainRecurringTasks type=tasks.action.MaintainRecurringTasksPageAction scope=request name=MaintainRecurringTasksPageForm attribute=MaintainRecurringTasksPageForm parameter=maintainRecurringTasks validate=true forward name=success path=/jsp/tasks/MaintainRecurringTasks.jsp / /action Thanks, Jay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. CONFIDENTIALITY NOTICE:This email is intended solely for the person or entity to which it is addressed and may contain confidential and/or protected health information. Any duplication, dissemination, action taken in reliance upon, or other use of this information by persons or entities other than the intended recipient is prohibited and may violate applicable laws. If this email has been received in error, please notify the sender and delete the information from your system. The views expressed in this email are those of the sender and may not necessarily represent the views of IntelliCare. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: {Spam?} Re: {Spam?} validate() not called
Hi Jay: So the form beans you are using in both cases are different. So are you sure these two form bean names are mapped to the correct classes in your struts-config.xml? i.e. check what form-bean name=UpdateOverridePageForm.. and form-bean name=MaintainRecurringTasksPageForm.. map to and see if you haven't made a mistake there.. hth, Geeta Jay Sheth [EMAIL PROTECTED] 08/08/2005 03:57 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} validate() not called I am using the system.out. in both classes validate() and checking it out. The working codes struts config class: action path=/updateOverride type=tasks.action.UpdateOverridePageAction scope=request name=UpdateOverridePageForm attribute=UpdateOverridePageForm parameter=updateOverride validate=true input=/jsp/tasks/UpdateOverridePage.jsp forward name=success path=/jsp/tasks/UpdateOverridePage.jsp / /action public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { // TODO Auto-generated method stub ActionErrors errors = super.validate(mapping, request); System.out.println(validate in update called); -- This does come in the logs. The not working code : action path=/maintainRecurringTasks type=tasks.action.MaintainRecurringTasksPageAction scope=request name=MaintainRecurringTasksPageForm attribute=MaintainRecurringTasksPageForm parameter=maintainRecurringTasks validate=true forward name=success path=/jsp/tasks/MaintainRecurringTasks.jsp / /action public ActionErrors validate(ActionMapping mapping, ServletRequest request) { // TODO Auto-generated method stub ActionErrors errors = super.validate(mapping, request); System.out.println(validate in main tain called ); ...basically the same. Even though I use input=/jsp/tasks/MaintainOverridePage.jsp it does not help. Basically some silly mistake which i dont understand. Jay On 8/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Jay, So how do you know that validate() isn't being called? Have you placed a break point in your validate and execute methods? Can you send us the snippets from struts-config.xml for both the classes and tell us which works and which doesn't? Geeta Jay Sheth [EMAIL PROTECTED] 08/08/2005 03:31 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} validate() not called Hi, I am trying to use the validate() by extending the org.apache.struts.validator.ValidatorForm class. The problem is that the validate() is being called for one form class which I have created, however it is not being called for another similar form class. There are no errors which compiling etc...so i dont get to know why it is not being called. Any hints on how to debug as to why it is not called ? The snippet struts-config.xml is : action path=/maintainRecurringTasks type=tasks.action.MaintainRecurringTasksPageAction scope=request name=MaintainRecurringTasksPageForm attribute=MaintainRecurringTasksPageForm parameter=maintainRecurringTasks validate=true forward name=success path=/jsp/tasks/MaintainRecurringTasks.jsp / /action Thanks, Jay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. CONFIDENTIALITY NOTICE:This email is intended solely for the person or entity to which it is addressed and may contain confidential and/or protected health information. Any duplication, dissemination, action taken in reliance upon, or other use of this information by persons or entities other than the intended recipient is prohibited and may violate applicable laws. If this email has been received in error, please notify the sender and delete the information from your system. The views expressed in this email are those of the sender and may not necessarily represent the views of IntelliCare. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses
Re: {Spam?} Re: {Spam?} validate() not called
checked that... form-bean name=MaintainRecurringTasksPageForm type=tasks.form.MaintainRecurringTasksPageForm/ form-bean name=UpdateOverridePageForm type=tasks.form.UpdateOverridePageForm/ Any other hints ? Is there a way to debug or something...? Just one more thing to tell...I have mapped the form for updateoverridepageform in validation.xml but not mapped maintain**form. Even if i map that doesnt help... I think there is some other mistake...but hard to find...any other hints would help. Jay On 8/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Jay: So the form beans you are using in both cases are different. So are you sure these two form bean names are mapped to the correct classes in your struts-config.xml? i.e. check what form-bean name=UpdateOverridePageForm.. and form-bean name=MaintainRecurringTasksPageForm.. map to and see if you haven't made a mistake there.. hth, Geeta Jay Sheth [EMAIL PROTECTED] 08/08/2005 03:57 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} validate() not called I am using the system.out. in both classes validate() and checking it out. The working codes struts config class: action path=/updateOverride type=tasks.action.UpdateOverridePageAction scope=request name=UpdateOverridePageForm attribute=UpdateOverridePageForm parameter=updateOverride validate=true input=/jsp/tasks/UpdateOverridePage.jsp forward name=success path=/jsp/tasks/UpdateOverridePage.jsp / /action public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { // TODO Auto-generated method stub ActionErrors errors = super.validate(mapping, request); System.out.println(validate in update called); -- This does come in the logs. The not working code : action path=/maintainRecurringTasks type=tasks.action.MaintainRecurringTasksPageAction scope=request name=MaintainRecurringTasksPageForm attribute=MaintainRecurringTasksPageForm parameter=maintainRecurringTasks validate=true forward name=success path=/jsp/tasks/MaintainRecurringTasks.jsp / /action public ActionErrors validate(ActionMapping mapping, ServletRequest request) { // TODO Auto-generated method stub ActionErrors errors = super.validate(mapping, request); System.out.println(validate in main tain called ); ...basically the same. Even though I use input=/jsp/tasks/MaintainOverridePage.jsp it does not help. Basically some silly mistake which i dont understand. Jay On 8/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Jay, So how do you know that validate() isn't being called? Have you placed a break point in your validate and execute methods? Can you send us the snippets from struts-config.xml for both the classes and tell us which works and which doesn't? Geeta Jay Sheth [EMAIL PROTECTED] 08/08/2005 03:31 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} validate() not called Hi, I am trying to use the validate() by extending the org.apache.struts.validator.ValidatorForm class. The problem is that the validate() is being called for one form class which I have created, however it is not being called for another similar form class. There are no errors which compiling etc...so i dont get to know why it is not being called. Any hints on how to debug as to why it is not called ? The snippet struts-config.xml is : action path=/maintainRecurringTasks type=tasks.action.MaintainRecurringTasksPageAction scope=request name=MaintainRecurringTasksPageForm attribute=MaintainRecurringTasksPageForm parameter=maintainRecurringTasks validate=true forward name=success path=/jsp/tasks/MaintainRecurringTasks.jsp / /action Thanks, Jay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. CONFIDENTIALITY NOTICE:This email is intended solely for the person or entity to which it is addressed and may contain
Re: {Spam?} Re: {Spam?} validate() not called
Jay Sheth wrote: Just one more thing to tell...I have mapped the form for updateoverridepageform in validation.xml but not mapped maintain**form. Even if i map that doesnt help... What do the validation.xml configs look like? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called
Do you use an IDE for development? Like eclipse or something? If you don't, I would suggest you do because then you could set breakpoints and debug that way.. System.out.printlns aren't the best way to debug - as you are probably finding out..:) One more thing you could do is the following: change the MaintainRecurringTasksPageForm in struts-config.xml to also point to tasks.form.UpdateOverridePageForm. Restart to ensure you change took and try again. Do you hit the validate method now? Jay Sheth [EMAIL PROTECTED] 08/08/2005 04:12 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} Re: {Spam?} validate() not called checked that... form-bean name=MaintainRecurringTasksPageForm type=tasks.form.MaintainRecurringTasksPageForm/ form-bean name=UpdateOverridePageForm type=tasks.form.UpdateOverridePageForm/ Any other hints ? Is there a way to debug or something...? Just one more thing to tell...I have mapped the form for updateoverridepageform in validation.xml but not mapped maintain**form. Even if i map that doesnt help... I think there is some other mistake...but hard to find...any other hints would help. Jay On 8/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Jay: So the form beans you are using in both cases are different. So are you sure these two form bean names are mapped to the correct classes in your struts-config.xml? i.e. check what form-bean name=UpdateOverridePageForm.. and form-bean name=MaintainRecurringTasksPageForm.. map to and see if you haven't made a mistake there.. hth, Geeta Jay Sheth [EMAIL PROTECTED] 08/08/2005 03:57 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} validate() not called I am using the system.out. in both classes validate() and checking it out. The working codes struts config class: action path=/updateOverride type=tasks.action.UpdateOverridePageAction scope=request name=UpdateOverridePageForm attribute=UpdateOverridePageForm parameter=updateOverride validate=true input=/jsp/tasks/UpdateOverridePage.jsp forward name=success path=/jsp/tasks/UpdateOverridePage.jsp / /action public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { // TODO Auto-generated method stub ActionErrors errors = super.validate(mapping, request); System.out.println(validate in update called); -- This does come in the logs. The not working code : action path=/maintainRecurringTasks type=tasks.action.MaintainRecurringTasksPageAction scope=request name=MaintainRecurringTasksPageForm attribute=MaintainRecurringTasksPageForm parameter=maintainRecurringTasks validate=true forward name=success path=/jsp/tasks/MaintainRecurringTasks.jsp / /action public ActionErrors validate(ActionMapping mapping, ServletRequest request) { // TODO Auto-generated method stub ActionErrors errors = super.validate(mapping, request); System.out.println(validate in main tain called ); ...basically the same. Even though I use input=/jsp/tasks/MaintainOverridePage.jsp it does not help. Basically some silly mistake which i dont understand. Jay On 8/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Jay, So how do you know that validate() isn't being called? Have you placed a break point in your validate and execute methods? Can you send us the snippets from struts-config.xml for both the classes and tell us which works and which doesn't? Geeta Jay Sheth [EMAIL PROTECTED] 08/08/2005 03:31 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} validate() not called Hi, I am trying to use the validate() by extending the org.apache.struts.validator.ValidatorForm class. The problem is that the validate() is being called for one form class which I have created, however it is not being called for another similar form class. There are no errors which compiling etc...so i dont get to know why it is not being called. Any hints on how to debug as to why it is not called ? The snippet struts-config.xml is : action path=/maintainRecurringTasks type=tasks.action.MaintainRecurringTasksPageAction
Re: {Spam?} Re: {Spam?} validate() not called
I have mapped only for the update**form (the one which works)... formset form name=UpdateOverridePageForm field property=duration depends=requiredif arg0 key=errors.duration.required/ var var-namefield[0]/var-name var-valueedit_delete/var-value /var var var-namefieldTest[0]/var-name var-valueEQUAL/var-value /var var var-namefieldValue[0]/var-name var-value2/var-value /var var var-namefieldValue[0]/var-name var-value2/var-value /var /field field property=earliest_start depends=requiredif arg0 key=errors.arrive.required/ var var-namefield[0]/var-name var-valueedit_delete/var-value /var var var-namefieldTest[0]/var-name var-valueEQUAL/var-value /var var var-namefieldValue[0]/var-name var-value2/var-value /var /field field property=latest_start depends=requiredif arg0 key=errors.complete.required/ var var-namefield[0]/var-name var-valueedit_delete/var-value /var var var-namefieldTest[0]/var-name var-valueEQUAL/var-value /var var var-namefieldValue[0]/var-name var-value2/var-value /var /field field property=location depends=requiredif arg0 key=errors.location/ var var-namefield[0]/var-name var-valueedit_delete/var-value /var var var-namefieldTest[0]/var-name var-valueEQUAL/var-value /var var var-namefieldValue[0]/var-name var-value2/var-value /var /field /form /formset I had also mapped for the maintain...but removed it...it doesnt work even with it... for maintain it was similar with one more field.. Jay On 8/8/05, Dave Newton [EMAIL PROTECTED] wrote: Jay Sheth wrote: Just one more thing to tell...I have mapped the form for updateoverridepageform in validation.xml but not mapped maintain**form. Even if i map that doesnt help... What do the validation.xml configs look like? Dave - 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: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called
I cannot do that, since the 2 forms are having different fields. Somehow the tomcat 5.5.9 doesnt work with eclipse for my project. I am using ui to start tomcat. thanks anyways. Jay On 8/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Do you use an IDE for development? Like eclipse or something? If you don't, I would suggest you do because then you could set breakpoints and debug that way.. System.out.printlns aren't the best way to debug - as you are probably finding out..:) One more thing you could do is the following: change the MaintainRecurringTasksPageForm in struts-config.xml to also point to tasks.form.UpdateOverridePageForm. Restart to ensure you change took and try again. Do you hit the validate method now? Jay Sheth [EMAIL PROTECTED] 08/08/2005 04:12 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} Re: {Spam?} validate() not called checked that... form-bean name=MaintainRecurringTasksPageForm type=tasks.form.MaintainRecurringTasksPageForm/ form-bean name=UpdateOverridePageForm type=tasks.form.UpdateOverridePageForm/ Any other hints ? Is there a way to debug or something...? Just one more thing to tell...I have mapped the form for updateoverridepageform in validation.xml but not mapped maintain**form. Even if i map that doesnt help... I think there is some other mistake...but hard to find...any other hints would help. Jay On 8/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Jay: So the form beans you are using in both cases are different. So are you sure these two form bean names are mapped to the correct classes in your struts-config.xml? i.e. check what form-bean name=UpdateOverridePageForm.. and form-bean name=MaintainRecurringTasksPageForm.. map to and see if you haven't made a mistake there.. hth, Geeta Jay Sheth [EMAIL PROTECTED] 08/08/2005 03:57 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} validate() not called I am using the system.out. in both classes validate() and checking it out. The working codes struts config class: action path=/updateOverride type=tasks.action.UpdateOverridePageAction scope=request name=UpdateOverridePageForm attribute=UpdateOverridePageForm parameter=updateOverride validate=true input=/jsp/tasks/UpdateOverridePage.jsp forward name=success path=/jsp/tasks/UpdateOverridePage.jsp / /action public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { // TODO Auto-generated method stub ActionErrors errors = super.validate(mapping, request); System.out.println(validate in update called); -- This does come in the logs. The not working code : action path=/maintainRecurringTasks type=tasks.action.MaintainRecurringTasksPageAction scope=request name=MaintainRecurringTasksPageForm attribute=MaintainRecurringTasksPageForm parameter=maintainRecurringTasks validate=true forward name=success path=/jsp/tasks/MaintainRecurringTasks.jsp / /action public ActionErrors validate(ActionMapping mapping, ServletRequest request) { // TODO Auto-generated method stub ActionErrors errors = super.validate(mapping, request); System.out.println(validate in main tain called ); ...basically the same. Even though I use input=/jsp/tasks/MaintainOverridePage.jsp it does not help. Basically some silly mistake which i dont understand. Jay On 8/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Jay, So how do you know that validate() isn't being called? Have you placed a break point in your validate and execute methods? Can you send us the snippets from struts-config.xml for both the classes and tell us which works and which doesn't? Geeta Jay Sheth [EMAIL PROTECTED] 08/08/2005 03:31 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} validate() not called Hi, I am trying to use the validate() by extending the org.apache.struts.validator.ValidatorForm class. The problem is that the validate() is being called for one form class which I have created
Re: {Spam?} Re: {Spam?} Re: {Spam?} validate() not called
You don't need to have tomcat work with eclipse to debug action classes. All you need is to make changes to the tomcat startup file to enable JDWP debugging on a socket, and then tell eclipse to start debugging at the socket and hostname if on a different host or localhost if same box. Set a breakpoint in your project's source, and you'll be all set. see the first few links here: http://www.google.com/search?q=xrunjdwp+tomcat -ed On 8/8/05, Jay Sheth [EMAIL PROTECTED] wrote: I cannot do that, since the 2 forms are having different fields. Somehow the tomcat 5.5.9 doesnt work with eclipse for my project. I am using ui to start tomcat. thanks anyways. Jay On 8/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Do you use an IDE for development? Like eclipse or something? If you don't, I would suggest you do because then you could set breakpoints and debug that way.. System.out.printlns aren't the best way to debug - as you are probably finding out..:) One more thing you could do is the following: change the MaintainRecurringTasksPageForm in struts-config.xml to also point to tasks.form.UpdateOverridePageForm. Restart to ensure you change took and try again. Do you hit the validate method now? Jay Sheth [EMAIL PROTECTED] 08/08/2005 04:12 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} Re: {Spam?} validate() not called checked that... form-bean name=MaintainRecurringTasksPageForm type=tasks.form.MaintainRecurringTasksPageForm/ form-bean name=UpdateOverridePageForm type=tasks.form.UpdateOverridePageForm/ Any other hints ? Is there a way to debug or something...? Just one more thing to tell...I have mapped the form for updateoverridepageform in validation.xml but not mapped maintain**form. Even if i map that doesnt help... I think there is some other mistake...but hard to find...any other hints would help. Jay On 8/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Jay: So the form beans you are using in both cases are different. So are you sure these two form bean names are mapped to the correct classes in your struts-config.xml? i.e. check what form-bean name=UpdateOverridePageForm.. and form-bean name=MaintainRecurringTasksPageForm.. map to and see if you haven't made a mistake there.. hth, Geeta Jay Sheth [EMAIL PROTECTED] 08/08/2005 03:57 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject {Spam?} Re: {Spam?} validate() not called I am using the system.out. in both classes validate() and checking it out. The working codes struts config class: action path=/updateOverride type=tasks.action.UpdateOverridePageAction scope=request name=UpdateOverridePageForm attribute=UpdateOverridePageForm parameter=updateOverride validate=true input=/jsp/tasks/UpdateOverridePage.jsp forward name=success path=/jsp/tasks/UpdateOverridePage.jsp / /action public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { // TODO Auto-generated method stub ActionErrors errors = super.validate(mapping, request); System.out.println(validate in update called); -- This does come in the logs. The not working code : action path=/maintainRecurringTasks type=tasks.action.MaintainRecurringTasksPageAction scope=request name=MaintainRecurringTasksPageForm attribute=MaintainRecurringTasksPageForm parameter=maintainRecurringTasks validate=true forward name=success path=/jsp/tasks/MaintainRecurringTasks.jsp / /action public ActionErrors validate(ActionMapping mapping, ServletRequest request) { // TODO Auto-generated method stub ActionErrors errors = super.validate(mapping, request); System.out.println(validate in main tain called ); ...basically the same. Even though I use input=/jsp/tasks/MaintainOverridePage.jsp it does not help. Basically some silly mistake which i dont understand. Jay On 8/8/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Jay, So how do you know that validate() isn't being called? Have you placed a break point in your validate and execute methods