Number Of Page View:100,000+/Months
LOGIN |New User


What is for Action.execute() method?
The execute method is where your application logic begins. It is the method that you need to override when defining your own Actions. The execute() method has two functions:
  * It performs the user-defined business logic associated with your application.
  * It tells the Framework where it should next route the request.

The Struts framework defines two execute() methods. The first execute() implementation is used when you are defining custom Actions that are not HTTP specific, i.e. anlogous to the javax.servlet.GenericServlet class. The second, HTTP specific, You need to override the Action.execute() method and is anlogous to the javax.servlet.HttpServlet class.
Its signature is:

public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpResponse response) throws IOException, ServletException{// some code here}
Posted By: Name:Rajesh Kr URL: What is for Action.execute() method?