Class SampleAction

java.lang.Object
com.opensymphony.xwork2.ActionSupport
org.conical.common.bbl.web.struts.actions.BaseAction
org.conical.common.bbl.web.struts.actions.SampleAction
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable, org.apache.struts2.interceptor.ServletRequestAware, org.apache.struts2.interceptor.ServletResponseAware

public class SampleAction extends BaseAction
This class exists as a simple child of BaseAction to show how little code must be written to implement an action. It can be used as a model for those learning Struts and the BBL Struts framework.
Author:
rdoherty
See Also:
  • Constructor Details

    • SampleAction

      public SampleAction()
  • Method Details

    • actionRequiresLogin

      protected boolean actionRequiresLogin()
      Returns true since most applications require login.
      Specified by:
      actionRequiresLogin in class BaseAction
      Returns:
      true
    • doWork

      protected String doWork() throws Exception
      Performs no side effects; simply returns success.
      Specified by:
      doWork in class BaseAction
      Returns:
      success
      Throws:
      Exception - if something goes wrong