| org.apache.turbine.modules.ActionEvent org.apache.turbine.util.jsp.JspActionEvent
All known Subclasses: org.apache.turbine.modules.actions.JspAction,
JspActionEvent | abstract public class JspActionEvent extends ActionEvent (Code) | | In order to use Context in Jsp templates your Action's should
extend this class instead of extending the ActionEvent class. The
difference between this class and the ActionEvent class is that
this class will first attempt to execute one of your doMethod's
with a constructor like this:
doEvent(RunData data, Context context)
It gets the context from the TemplateInfo.getTemplateContext()
method. If it can't find a method like that, then it will try to
execute the method without the Context in it.
author: Jon S. Stevens author: Jason van Zyl author: Gabriel A. Moreno version: $Id: JspActionEvent.java 534872 2007-05-03 14:07:18Z tv $ |
Method Summary | |
abstract public void | doPerform(RunData data) You need to implement this in your classes that extend this
class. | public void | executeEvents(RunData data, Context context) This method should be called to execute the event based system. | protected void | perform(RunData data) This overrides the default Action.perform() to execute the
doEvent() method. |
doPerform | abstract public void doPerform(RunData data) throws Exception(Code) | | You need to implement this in your classes that extend this
class.
Parameters: data - A Turbine RunData object. exception: Exception - , a generic exception. |
executeEvents | public void executeEvents(RunData data, Context context) throws Exception(Code) | | This method should be called to execute the event based system.
Parameters: data - A Turbine RunData object. Parameters: context - Jsp context information. exception: Exception - , a generic exception. |
perform | protected void perform(RunData data) throws Exception(Code) | | This overrides the default Action.perform() to execute the
doEvent() method. If that fails, then it will execute the
doPerform() method instead.
Parameters: data - A Turbine RunData object. exception: Exception - , a generic exception. |
|
|