Which is correct execute method of Action class?
-
public void execute(ActionMapping mapping, ActionForm form, HttpServletReuest reuest, HttpServletResponse response) throws IOException
-
public ActionForward execute (ActionMapping mapping, ActionForm form, ServletReuest reuest, ServletResponse response) throws Exception
-
public ActionForward execute (ActionMapping mapping, ActionForm form, HttpServletReuest reuest, HttpServletResponse response) throws Exception
-
public ActionForward execute (ActionMapping mapping, ActionForm form, ServletReuest reuest, ServletResponse response) throws SevletException, IOExpection.
The standard signature of the Struts Action class execute method returns an ActionForward object and accepts ActionMapping, ActionForm, HttpServletRequest, and HttpServletResponse arguments while throwing Exception. Despite minor typographical errors in the options, this signature correctly matches the framework's design, whereas other options have incorrect return types or parameter classes.