package org.apache.struts2; /** * Default action interface. Provided purely for user convenience. Struts does not require actions to implement any * interfaces. Actions need only implement a public, no argument method which returns {@code String}. If a user does * not specify a method name, Struts defaults to {@code execute()}. * *

For example: * *

 *   static import ResultNames.*;
 *
 *   public class MyAction implements Action {
 *
 *     public String execute() {
 *       return SUCCESS;
 *     }
 *   }
 * 
* *

is equivalent to: * *

 *   static import ResultNames.*;
 *
 *   public class MyAction {
 *
 *     public String execute() {
 *       return SUCCESS;
 *     }
 *   }
 * 
* * @author crazybob@google.com (Bob Lee) */ public interface Action { /** * Executes this action. * * @return result name which matches a result name from the action mapping in the configuration file. See {@link * ResultNames} for common suggestions. */ String execute(); }