|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.struts.action.ActionServlet
com.oroad.stxx.action.ActionServlet
The replacement Struts 1.0 servlet to enable stxx. This class extends the Struts 1.0 servlet to add stxx features.
Field Summary | |
protected static java.lang.String |
TRANSFORMER_HANDLER_KEY
Key the transformer handler is stored under in the servlet context |
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 | |
protected void |
destroyApplication()
Override the destroyApplication object to destroy the stxx objects |
void |
init()
Override the init method to load the init of stxx stuff |
protected Digester |
initDigester(int detail)
Override the initDigester of the main struts class to add functionality for supporting transform tags in the |
protected void |
process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Since I cannot override the process method, I've just copied the contents here. |
protected void |
processActionForward(ActionForward forward,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Overrides the struts process ActionForward method to trap for transformation that need to be done. |
protected boolean |
processValidate(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm formInstance,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Call the validate() method of the specified ActionForm, and
forward back to the input form if there are any errors. |
void |
reload()
Override the reload method to load the init of stxx stuff |
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 |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, 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 |
Field Detail |
protected static final java.lang.String TRANSFORMER_HANDLER_KEY
Constructor Detail |
public ActionServlet()
Method Detail |
public void init() throws javax.servlet.ServletException
javax.servlet.ServletException
- If something goes wrongpublic void reload() throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
- If something goes wrong
javax.servlet.ServletException
- If something goes wrongprotected void destroyApplication()
protected void processActionForward(ActionForward forward, org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
forward
- - An ActionForward objectmapping
- - An ActionMappingform
- - An ActionFormrequest
- - The request objectresponse
- - The response object
java.io.IOException
- - If an error occurs, throw it
javax.servlet.ServletException
- - If an error occurs, throw itprotected Digester initDigester(int detail)
detail
- - The level of debugging detail to use
protected void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
request
- - The request objectresponse
- - The response object
java.io.IOException
- - If an error occurs, throw it
javax.servlet.ServletException
- - If an error occurs, throw itprotected boolean processValidate(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm formInstance, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
validate()
method of the specified ActionForm, and
forward back to the input form if there are any errors. Return true
if we should continue processing (and call the Action
class
perform()
method), or return false
if we have
already forwarded control back to the input form.
mapping
- The ActionMapping we are processingformInstance
- The ActionForm we are processingrequest
- The servlet request we are processingresponse
- The servlet response we are processing
java.io.IOException
- if an input/output error occurs
javax.servlet.ServletException
- if a servlet exception occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |