Class AjaxTestAction

java.lang.Object
org.apache.struts2.showcase.ajax.AjaxTestAction
All Implemented Interfaces:
Serializable, Action

public class AjaxTestAction extends Object implements Action, Serializable
See Also:
  • Constructor Details

    • AjaxTestAction

      public AjaxTestAction()
  • Method Details

    • execute

      public String execute() throws Exception
      Description copied from interface: Action
      Where the logic of the action is executed.
      Specified by:
      execute in interface Action
      Returns:
      a string representing the logical result of the execution. See constants in this interface for a list of standard result values.
      Throws:
      Exception - thrown if a system level exception occurs. Note: Application level exceptions should be handled by returning an error value, such as Action.ERROR.
    • getServerTime

      public long getServerTime()
    • getCount

      public int getCount()
    • getData

      public String getData()
    • setData

      public void setData(String data)