You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Laurie Harper <la...@holoweb.net> on 2008/04/30 00:02:59 UTC

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="includeMethods">save</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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org