org.beyondcode.struts.dispatcher
Class DispatcherTestServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--org.apache.struts.action.ActionServlet
                    |
                    +--org.beyondcode.struts.dispatcher.DispatcherTestServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class DispatcherTestServlet
extends org.apache.struts.action.ActionServlet

On start-up, this class tests the action mappings read from struts-config.xml and writes its findings into the servlet log.

Author:
Philipp K. Janert
See Also:
Serialized Form

Field Summary
protected static org.apache.struts.util.MessageResources messages
          Handle to properties file with error messages.
 
Fields inherited from class org.apache.struts.action.ActionServlet
actions, application, bufferSize, config, content, dataSources, debug, defaultLocale, factoryClass, formBeanClass, formBeans, forwardClass, forwards, internal, internalName, locale, mappingClass, mappings, maxFileSize, multipartClass, nocache, registrations, servletMapping, servletName, tempDir, validate, validating
 
Constructor Summary
DispatcherTestServlet()
           
 
Method Summary
protected  void initMapping()
          Tests the mappings read from struts-config.xml for non-null "standard" forwards and writes its findings into the servlet log.
 
Methods inherited from class org.apache.struts.action.ActionServlet
addDataSource, addFormBean, addForward, addMapping, addServletMapping, destroy, destroyActions, destroyApplication, destroyDataSources, destroyInternal, doGet, doPost, findDataSource, findFormBean, findForward, findMapping, getBufferSize, getDebug, getFormBeanClass, getForwardClass, getMappingClass, getMaxFileSize, getMultipartClass, getResources, getTempDir, init, initActions, initApplication, initDataSources, initDebug, initDigester, initDigesterOld, initInternal, initOther, initServlet, initUpload, log, process, processActionCreate, processActionForm, processActionForward, processActionPerform, processContent, processForward, processInclude, processLocale, processMapping, processNoCache, processPath, processPopulate, processPreprocess, processValidate, reload, removeFormBean, removeForward, removeMapping, setBufferSize, setFormBeanClass, setForwardClass, setMappingClass, setMaxFileSize, setMultipartClass, setTempDir
 
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
 

Field Detail

messages

protected static org.apache.struts.util.MessageResources messages
Handle to properties file with error messages.

Constructor Detail

DispatcherTestServlet

public DispatcherTestServlet()
Method Detail

initMapping

protected void initMapping()
                    throws java.io.IOException,
                           javax.servlet.ServletException
Tests the mappings read from struts-config.xml for non-null "standard" forwards and writes its findings into the servlet log.

Overrides:
initMapping in class org.apache.struts.action.ActionServlet
Throws:
java.io.IOException
javax.servlet.ServletException