You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by james billa <ja...@gmail.com> on 2009/10/16 19:53:57 UTC
execute() not getting executed
Hi - I am using struts 2.1.6. From my jsp on submitting the form, the
control goes to my action class, methods prepare() and validate() gets
executed. But after that the execute() is not getting called. I don't have
any error messages printed on my console. I have only system.out in
prepare() and validate(). Can anyone think of any reason why it would happen
or any way to debug this? Thanks.
JB
Re: execute() not getting executed
Posted by Denis Cabasson <ca...@gmail.com>.
No out of the box way of dealing with that. You can send your jsp code /
Action code to see if we can figure out what is wrong.
Denis.
james billa a écrit :
> Hi - I am using struts 2.1.6. From my jsp on submitting the form, the
> control goes to my action class, methods prepare() and validate() gets
> executed. But after that the execute() is not getting called. I don't have
> any error messages printed on my console. I have only system.out in
> prepare() and validate(). Can anyone think of any reason why it would happen
> or any way to debug this? Thanks.
>
> JB
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: execute() not getting executed
Posted by Denis Cabasson <de...@gmail.com>.
No out of the box way of dealing with that. You can send your jsp code /
Action code to see if we can figure out what is wrong.
Denis.
james billa a écrit :
> Hi - I am using struts 2.1.6. From my jsp on submitting the form, the
> control goes to my action class, methods prepare() and validate() gets
> executed. But after that the execute() is not getting called. I don't have
> any error messages printed on my console. I have only system.out in
> prepare() and validate(). Can anyone think of any reason why it would happen
> or any way to debug this? Thanks.
>
> JB
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: execute() not getting executed
Posted by Thomas Sattler <to...@gmail.com>.
execute() is the *default* method for an Action class. It's not the *only*
method.
execute() will get called if you don't have a different method specified.
You can basically call any method you want; leaving out the "method="
parameter is the same as specifying "method=execute". But you can specify
any method.
On Fri, Oct 16, 2009 at 2:38 PM, Lukasz Lenart <lukasz.lenart@googlemail.com
> wrote:
> Typo?
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
> http://dailylog.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: execute() not getting executed
Posted by Lukasz Lenart <lu...@googlemail.com>.
Typo?
Regards
--
Lukasz
http://www.lenart.org.pl/
http://dailylog.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org