Please send your Questions & Answers or Feedback to ""

What is the difference between perform() and execute() methods ?

Perform method is the method which was deprecated in the Struts Version 1.1. In Struts 1.x, Action.perform() is the method called by the ActionServlet.

This is typically where your business logic resides, or at least the flow control to your JavaBeans and EJBs that handle your business logic.

As we already mentioned, to support declarative exception handling, the method signature changed in perform.

Now execute just throws Exception. Action.perform() is now deprecated; however, the Struts v1.1 ActionServlet is smart enough to know whether or not it should call perform or execute in the Action, depending on which one is available.

Related Posts Plugin for WordPress, Blogger...
Flag Counter