|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet javax.servlet.http.HttpServlet org.apache.struts.action.ActionServlet com.pow2.struts.action.ActionServlet
Ask the specified Action instance to handle this request.
If the input action subclasses BaseAction
, execute
its validateSession
method.
If that method returns false
, redirect to the resource
specified by the invalidSessionForward
method.
Else execute the action's perform
method.
Field Summary |
Fields inherited from class org.apache.struts.action.ActionServlet |
config, configDigester, convertNull, dataSources, debug, internal, internalName, log, processor, registrations, servletMapping, servletName |
Constructor Summary | |
ActionServlet()
|
Method Summary | |
void |
init()
Initialize this servlet. |
protected org.apache.struts.action.ActionForward |
processActionPerform(org.apache.struts.action.Action action,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm formInstance,
HttpServletRequest request,
HttpServletResponse response)
Ask the specified Action instance to handle this request. |
Methods inherited from class org.apache.struts.action.ActionServlet |
addServletMapping, destroy, destroyApplications, destroyConfigDigester, destroyDataSources, destroyInternal, destroyModules, doGet, doPost, findDataSource, findFormBean, findForward, findMapping, getApplicationConfig, getDebug, getInternal, getModuleConfig, getRequestProcessor, getResources, initApplicationConfig, initApplicationDataSources, initApplicationMessageResources, initApplicationPlugIns, initConfigDigester, initDataSources, initInternal, initModuleConfig, initModuleDataSources, initModuleMessageResources, initModulePlugIns, initOther, initServlet, log, process |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActionServlet()
Method Detail |
public void init() throws ServletException
ServletException
- if we cannot configure ourselves correctlyprotected org.apache.struts.action.ActionForward processActionPerform(org.apache.struts.action.Action action, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm formInstance, HttpServletRequest request, HttpServletResponse response) throws ServletException
BaseAction
, execute
the provided validateSession
method.
false
, redirect to the resource
specified by the invalidSessionForward
method.
perform
method.
action
- The Action to process this requestmapping
- The ActionMapping we are processingformInstance
- The ActionForm we are processingrequest
- The servlet request we are processingresponse
- The servlet response we are creating
IOException
- if an input/output error occurs
ServletException
- if a servlet exception occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |