You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sai reddy <sa...@gmail.com> on 2008/01/02 06:10:16 UTC

difference between Action.perform() and Action.execute()

Hi friends.

What's the difference between Action.perform() and Action.execute()

methods??

I'm talking about org.apache.struts.action.Action class.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: difference between Action.perform() and Action.execute()

Posted by Laurie Harper <la...@holoweb.net>.
sai reddy wrote:
> Hi friends.
> 
> What's the difference between Action.perform() and Action.execute()
> methods??
> 
> I'm talking about org.apache.struts.action.Action class.

The key difference is that there is no such method as Action.perform() 
anymore... [1] ;-) It was

  - deprecated in Struts 1.1 [2]
  - removed in Struts 1.2.4 [3]

The Struts 1.1 Javadoc lists Action.perform() as deprecated [4], saying 
you should use Action.execute() instead.

HTH,

L.


[1] 
http://struts.apache.org/1.3.8/apidocs/org/apache/struts/action/Action.html

[2]
http://struts.apache.org/1.3.8/userGuide/release-notes-1_1.html

[3]
http://struts.apache.org/1.3.8/userGuide/release-notes-1_2_4.html

[4]
http://struts.apache.org/1.1/api/org/apache/struts/action/Action.html


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: difference between Action.perform() and Action.execute()

Posted by Ray <cl...@gmail.com>.
sai reddy wrote:
> Hi friends.
>
> What's the difference between Action.perform() and Action.execute()
>
> methods??
>
> I'm talking about org.apache.struts.action.Action class.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
As far as I know. perform() is used in sturts older version, it was 
replaced by execute() in new version.
However they are all belonged to sturts version 1.x.
May this can help u.

-- 
Ray Chen
Email:clraychen@gmail.com
Blog: http://clraychen.blogcn.com
http://www.blogjava.net/clraychen


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org