You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mano Pájaro <ma...@gmail.com> on 2011/07/25 23:10:36 UTC
excludeMethods parameter question
Hello list! I'm making a research about Struts2 and there are several things
that I don't understand (haha), I have studied really hard and I think I'm
in the righ way now, but there's a thing that i don't understand about this
examples i found about interceptors, i'm talking about the parameter
excludeMethods. I have seen that most of the times it has "input,back,cancel"
but I don't really know what does it mean. Can u help me guys please?
--
Manolo Pájaro Santander
Ingeniero de Sistemas VIII Semestre (Actual)
<<Promoviendo el Software Libre>>
CUSOL-UAC
Linux Registered User # 522026
Re: excludeMethods parameter question
Posted by Mano Pájaro <ma...@gmail.com>.
Thank u for everything! I will keep studying! :D
--
Manolo Pájaro Santander
Ingeniero de Sistemas VIII Semestre (Actual)
<<Promoviendo el Software Libre>>
CUSOL-UAC
Linux Registered User # 522026
Re: excludeMethods parameter question
Posted by Chris Pratt <th...@gmail.com>.
Exactly, so the default (execute) would run the validation, but not the ones
that are listed.
(*Chris*)
On Mon, Jul 25, 2011 at 4:53 PM, Mano Pájaro <ma...@gmail.com> wrote:
> I see mm so, it only acts on the action which method attribute is diferent
> from in the list, that's it? :D
>
> 2011/7/25 Chris Pratt <th...@gmail.com>
>
> > Not exactly. It would not execute for actions whose method name is
> input,
> > back or cancel. It's on the action side, not the result side.
> > (*Chris*)
> >
> >
>
> --
> Manolo Pájaro Santander
> Ingeniero de Sistemas VIII Semestre (Actual)
> <<Promoviendo el Software Libre>>
> CUSOL-UAC
> Linux Registered User # 522026
>
Re: excludeMethods parameter question
Posted by Mano Pájaro <ma...@gmail.com>.
I see mm so, it only acts on the action which method attribute is diferent
from in the list, that's it? :D
2011/7/25 Chris Pratt <th...@gmail.com>
> Not exactly. It would not execute for actions whose method name is input,
> back or cancel. It's on the action side, not the result side.
> (*Chris*)
>
>
--
Manolo Pájaro Santander
Ingeniero de Sistemas VIII Semestre (Actual)
<<Promoviendo el Software Libre>>
CUSOL-UAC
Linux Registered User # 522026
Re: excludeMethods parameter question
Posted by Chris Pratt <th...@gmail.com>.
Not exactly. It would not execute for actions whose method name is input,
back or cancel. It's on the action side, not the result side.
(*Chris*)
On Mon, Jul 25, 2011 at 2:59 PM, Mano Pájaro <ma...@gmail.com> wrote:
> Thanks Maurizio, let me see if i got it straight. You mean that, for
> example:
>
> <interceptor-ref name="validation">
> <param
> name="excludeMethods">input,back,cancel</param></interceptor-ref>
>
> won't be executed by results whose name is input, back or cancel?
>
> 2011/7/25 Maurizio Cucchiara <ma...@gmail.com>
>
> > There are some interceptors, like validator one, which are not triggered
> in
> > case of the name of the invoked method matches one of the list element
> > (there is no reason to validate an input action, you don't yet obtain the
> > user input, so you have anything to validate).
> > Hope this help.
> >
> > Maurizio Cucchiara
> >
> >
> --
> Manolo Pájaro Santander
> Ingeniero de Sistemas VIII Semestre (Actual)
> <<Promoviendo el Software Libre>>
> CUSOL-UAC
> Linux Registered User # 522026
>
Re: excludeMethods parameter question
Posted by Mano Pájaro <ma...@gmail.com>.
Thanks Maurizio, let me see if i got it straight. You mean that, for
example:
<interceptor-ref name="validation">
<param
name="excludeMethods">input,back,cancel</param></interceptor-ref>
won't be executed by results whose name is input, back or cancel?
2011/7/25 Maurizio Cucchiara <ma...@gmail.com>
> There are some interceptors, like validator one, which are not triggered in
> case of the name of the invoked method matches one of the list element
> (there is no reason to validate an input action, you don't yet obtain the
> user input, so you have anything to validate).
> Hope this help.
>
> Maurizio Cucchiara
>
>
--
Manolo Pájaro Santander
Ingeniero de Sistemas VIII Semestre (Actual)
<<Promoviendo el Software Libre>>
CUSOL-UAC
Linux Registered User # 522026
Re: excludeMethods parameter question
Posted by Maurizio Cucchiara <ma...@gmail.com>.
There are some interceptors, like validator one, which are not triggered in
case of the name of the invoked method matches one of the list element
(there is no reason to validate an input action, you don't yet obtain the
user input, so you have anything to validate).
Hope this help.
Maurizio Cucchiara
Il giorno 25/lug/2011 23.11, "Mano Pájaro" <ma...@gmail.com> ha scritto:
> Hello list! I'm making a research about Struts2 and there are several
things
> that I don't understand (haha), I have studied really hard and I think I'm
> in the righ way now, but there's a thing that i don't understand about
this
> examples i found about interceptors, i'm talking about the parameter
> excludeMethods. I have seen that most of the times it has
"input,back,cancel"
> but I don't really know what does it mean. Can u help me guys please?
>
> --
> Manolo Pájaro Santander
> Ingeniero de Sistemas VIII Semestre (Actual)
> <<Promoviendo el Software Libre>>
> CUSOL-UAC
> Linux Registered User # 522026