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 save 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="". Perhaps you didn't see my previous reply requesting more information: http://www.nabble.com/Re%3A-Validation-on-methods-p16886534.html ~ save 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
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 save 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="". Perhaps you didn't see my previous reply requesting more information: http://www.nabble.com/Re%3A-Validation-on-methods-p16886534.html > > ~ save > > 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
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="". Perhaps you didn't see my previous reply requesting more information: http://www.nabble.com/Re%3A-Validation-on-methods-p16886534.html ~ save 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]
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="". ~ save 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]