Class SetUp

  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.commons.scaffold.http.ResourceServlet
              extended by org.apache.commons.scaffold.http.ConnectionServlet
                  extended by org.apache.commons.scaffold.http.SetUp
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class SetUp
extends ConnectionServlet

Load a connection adaptor and initialize default command store for use with StorageBeans.

This servlet can be configured using the following init-params:

command_path Path to SQL commands (Properties file).

NOTE: Unlike the path to the Struts application resources file, the paths for this servlet should use a slash and includes the properties extension.

The runtime processing of requests is handled by the Struts controller. This servlet is just to handle our own custom bits.

See Also:
Serialized Form

Field Summary
          Parameter to specify a new path for commands used by the application [command_path].
static String COMMAND_PATH
          Default path for commands used by application ["resources/"].
Constructor Summary
Method Summary
protected  void initCustom()
          Initialize the SQL properties for the Artimus application.
Methods inherited from class org.apache.commons.scaffold.http.ConnectionServlet
Methods inherited from class org.apache.commons.scaffold.http.ResourceServlet
destroy, destroyCustom, destroyDefault, getInitInt, getInitParameters, getInitString, getProperties, init, loadProperties, reload, setProperties
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, 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


public static String COMMAND_PARAMETER
Parameter to specify a new path for commands used by the application [command_path].


public static String COMMAND_PATH
Default path for commands used by application ["resources/"].

Constructor Detail


public SetUp()
Method Detail


protected void initCustom()
                   throws IOException,
Initialize the SQL properties for the Artimus application. Loads the commands for the keys and articles packages.

initCustom in class ResourceServlet
IOException - if an input/output error is encountered
javax.servlet.ServletException - if we cannot initialize these resources

Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.