Class LongProcessAction

java.lang.Object
org.apache.struts2.ActionSupport
org.apache.struts2.showcase.wait.LongProcessAction
All Implemented Interfaces:
Serializable, Action, ValidationAware, LocaleProvider, TextProvider, Validateable

public class LongProcessAction extends ActionSupport
Example to illustrate the execAndWait interceptor.
See Also:
  • Constructor Details

    • LongProcessAction

      public LongProcessAction()
  • Method Details

    • execute

      public String execute() throws Exception
      Description copied from class: ActionSupport
      A default implementation that does nothing an returns "success".

      Subclasses should override this method to provide their business logic.

      See also Action.execute().

      Specified by:
      execute in interface Action
      Overrides:
      execute in class ActionSupport
      Returns:
      returns Action.SUCCESS
      Throws:
      Exception - can be thrown by subclasses.
    • getTime

      public int getTime()
    • setTime

      public void setTime(int time)