Interface Action

  • All Known Implementing Classes:
    AbstractAction, ActionWrapper, TestAction

    public interface Action
    An action is something which can be performed by the user. A typical action is sendMessage or deleteMessage in a messaging system, both actions which do not render an immediate result. Instead they delegate the user to the proper page. Same is happening here, the action returns an ActionCommand which is usually a redirect (throw browser redirect or direct forward) to another page.
    Author:
    lrosenberg
    • Method Detail

      • execute

        ActionCommand execute​(jakarta.servlet.http.HttpServletRequest req,
                              jakarta.servlet.http.HttpServletResponse resp,
                              ActionMapping mapping)
                       throws Exception
        Executes the action.
        Parameters:
        req - the http request.
        resp - the http response.
        mapping - default mapping as configured in the CMS.
        Returns:
        ActionCommand
        Throws:
        Exception - on different kind of errors