struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <>
Subject Re: once again: validate() not called
Date Tue, 29 Apr 2008 22:02:59 GMT
Volker Karlmeier wrote:
> 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:

> <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().


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message