org.apache.struts2.result

## Interface Result

- All Superinterfaces:
    Serializable
  All Known Subinterfaces:
    PlainResult, Result
  All Known Implementing Classes:
    ActionChainResult, ActionChainResult, FreemarkerResult, HttpHeaderResult, MockResult, NullResult, PlainTextResult, PostbackResult, Result.LegacyAdapter, ServletActionRedirectResult, ServletDispatcherResult, ServletRedirectResult, StreamResult, StrutsResultSupport

      public interface Result
      extends Serializable

  All results (except for `Action.NONE`) of an `Action` are mapped to a View implementation.

  Examples of Views might be:

  - SwingPanelView - pops up a new Swing panel
  - ActionChainView - executes another action
  - SerlvetRedirectView - redirects the HTTP response to a URL
  - ServletDispatcherView - dispatches the HTTP response to a URL
  Author:
    plightbo

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `execute(ActionInvocation invocation)` Represents a generic interface for all action execution results.

- - ### Method Detail

    - #### execute

          void execute(ActionInvocation invocation)
                throws Exception

      Represents a generic interface for all action execution results. Whether that be displaying a webpage, generating an email, sending a JMS message, etc.
      Parameters:
        `invocation` - the invocation context.
      Throws:
        `Exception` - can be thrown.

Copyright © 2000–2026 Apache Software Foundation. All rights reserved.