LedgeServlet

Description

LedgeServlet is the entry point of a Ledge application in the servlet environment. It performs startup and shutdown of the system and forwards HTTP requests to designated components through HttpDispatcher interface.

Browse

Configuration parameters

name default description
root javax.servlet.context.tempdir context attribute, or user.dir system property if the former is not available. The root directory of the local file system td use.
config /config The base path of system configuration, within Ledge FileSystem.

The configuration parameters may be given as servlet initailizaion parameters in the web.xml file, or as servlet context attributes. In the latter case the actual name of the attribute is composed of the servlet-name under which LedgeServlet is registered, a dot and the actual parameter name. Consider the following web.xml file:

<?xml version="1.0"?>
<web-app>
  <servlet>
    <servlet-name>ledge</servlet-name>
    <servlet-class>org.objectledge.web.LedgeServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>ledge</servlet-name>
    <url-pattern>/ledge/*</url-pattern>
  </servlet-mapping>
</web-app>
The root directory can be used at deployment time with the following Tomcat application definition file:
<?xml version="1.0"?>
<Context path="/app"
         docBase="/home/app/production/app.war"
         reloadable="false">
  <Parameter name="ledge.root" 
             value="/home/app/production/work" 
             override="false"/>
</Context>

Dependencies

required components not applicable
required libraries Log4j (log4j), NanoContainer (picocontainer:nanocontainer)