com.jtri.struts
Class BaseAction
java.lang.Object
org.apache.struts.action.Action
com.jtri.struts.BaseAction
- Direct Known Subclasses:
- EditAction, FilterAction, LoveAction
- public abstract class BaseAction
- extends org.apache.struts.action.Action
Base for Jtri Actions. It implements basic methods to process filters,
read parameters, call forms and return calls, and also do the 'nop' action.
- Author:
- atorres
|
Method Summary |
void |
addCallCount(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm myForm,
javax.servlet.http.HttpServletRequest request)
|
void |
addFilter(javax.servlet.http.HttpServletRequest request,
java.lang.String formName,
IFilter form)
|
void |
addFilter(java.lang.String windowName,
javax.servlet.http.HttpServletRequest request,
java.lang.String formName,
IFilter form)
|
boolean |
checkFilterAction(Cusco cusco,
org.apache.struts.action.ActionMapping mapping)
|
Call |
getCall(javax.servlet.http.HttpServletRequest request,
java.lang.String wndName)
|
PageStructure |
getFirstStructure(PageStructure root)
Get the main (first) structure of the window, that usually has the filters
attached |
org.apache.struts.action.ActionForward |
noAction(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm myForm,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
No Action is used to reload the page. |
void |
processParameters(javax.servlet.http.HttpServletRequest request,
IRootForm form,
java.lang.String wndName)
|
org.apache.struts.action.ActionForward |
returnAction(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm myForm,
javax.servlet.http.HttpServletRequest request,
java.lang.String target)
|
| Methods inherited from class org.apache.struts.action.Action |
execute, execute, getServlet, setServlet |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseAction
public BaseAction()
returnAction
public org.apache.struts.action.ActionForward returnAction(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm myForm,
javax.servlet.http.HttpServletRequest request,
java.lang.String target)
addCallCount
public void addCallCount(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm myForm,
javax.servlet.http.HttpServletRequest request)
checkFilterAction
public boolean checkFilterAction(Cusco cusco,
org.apache.struts.action.ActionMapping mapping)
- Parameters:
cusco - mapping -
- Returns:
- true if no filter or filter is valid.
noAction
public org.apache.struts.action.ActionForward noAction(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm myForm,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
- No Action is used to reload the page. Drop downs are refreshed by this op
- Parameters:
mapping - myForm - request -
- Returns:
addFilter
public void addFilter(javax.servlet.http.HttpServletRequest request,
java.lang.String formName,
IFilter form)
addFilter
public void addFilter(java.lang.String windowName,
javax.servlet.http.HttpServletRequest request,
java.lang.String formName,
IFilter form)
getFirstStructure
public PageStructure getFirstStructure(PageStructure root)
- Get the main (first) structure of the window, that usually has the filters
attached
- Parameters:
root -
- Returns:
getCall
public Call getCall(javax.servlet.http.HttpServletRequest request,
java.lang.String wndName)
processParameters
public void processParameters(javax.servlet.http.HttpServletRequest request,
IRootForm form,
java.lang.String wndName)