|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.Action
live.struts.actions.CheckedAction
This class takes care of much of the tedious mucking about that we used to have to do at the beginning of every Action. Specifically, it:
Action
, except you implement the
act(CheckedAction.ActionInfo)
method instead of execute.
Rather than pass all four parameters we had before plus the cache plus
whatever else we may think is useful in the future to the subclasses, there
is a class used like a C struct (CheckedAction.ActionInfo
) that we put all that
in and just pass that.
Nested Class Summary | |
static class |
CheckedAction.ActionInfo
|
Field Summary |
Fields inherited from class org.apache.struts.action.Action |
defaultLocale, servlet |
Constructor Summary | |
CheckedAction()
|
Method Summary | |
abstract org.apache.struts.action.ActionForward |
act(CheckedAction.ActionInfo info)
This is called automagically when a request is made. |
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
This function does the behind-the-scenes magic of all the tedious mucking about mentioned above. |
Methods inherited from class org.apache.struts.action.Action |
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CheckedAction()
Method Detail |
public final org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws InterruptedException, UnsupportedEncodingException
InterruptedException
UnsupportedEncodingException
Action.execute(org.apache.struts.action.ActionMapping,
org.apache.struts.action.ActionForm,
javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
public abstract org.apache.struts.action.ActionForward act(CheckedAction.ActionInfo info)
info
- Holds the parameters that were passed to execute,
plus things like the cache and threads info deduced from those
parameters
InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |