struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yaragalla Muralidhar <>
Subject Re: is there a way to get action name in the execute method?
Date Mon, 30 Sep 2013 03:56:29 GMT
hi my problem is refresh, back and forward buttons in the browser. This
buttons though are very help full, sometimes this may lead to duplicate
submissions and can mess up the database. In solving this problem at some
point i thought it will be of great help if i can get the action name of
the action class that is being executed.

The following is the way to get the action name in the action class:-


The factory method "getContext()" in the ActionContext class returns the
"ActionContext" object. so the "getName()" method in the "ActionContext"
class returns the name of the action.

*Thanks and Regards,*
Muralidhar Yaragalla.

On Mon, Sep 30, 2013 at 8:03 AM, Dale Newfield <> wrote:

> For the benefit of others in the future searching archives of this list
> for the answer to the same question, would you please describe your
> scenario and solution in another post?
> -Dale
> On 9/29/13 2:03 PM, Yaragalla Muralidhar wrote:
>> I got the answer. Thanks.
>> *Thanks and Regards,*
>> Muralidhar Yaragalla.
>> On Sun, Sep 29, 2013 at 11:22 PM, Yaragalla Muralidhar <
>>> wrote:
>>  Hi for some reason i need to know the action name that is executed in
>>> action class execute method. Is it possible to get the action name to
>>> which
>>> the action class is mapped to in the action classes execute method?
>>> *Thanks and Regards,*
>>> Muralidhar Yaragalla.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message