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.


Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email