We should have been using setProperty() not put() and accordingly we can't
set a logger object in the properties, but must set the logger class. git-svn-id: https://samskivert.googlecode.com/svn/trunk@462 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: DispatcherServlet.java,v 1.12 2001/11/20 21:13:47 mdb Exp $
|
// $Id: DispatcherServlet.java,v 1.13 2001/11/20 21:33:03 mdb Exp $
|
||||||
//
|
//
|
||||||
// samskivert library - useful routines for java programs
|
// samskivert library - useful routines for java programs
|
||||||
// Copyright (C) 2001 Michael Bayne
|
// Copyright (C) 2001 Michael Bayne
|
||||||
@@ -198,16 +198,16 @@ public class DispatcherServlet extends VelocityServlet
|
|||||||
// path was provided
|
// path was provided
|
||||||
SiteResourceLoader siteLoader = _app.getSiteResourceLoader();
|
SiteResourceLoader siteLoader = _app.getSiteResourceLoader();
|
||||||
if (siteLoader != null) {
|
if (siteLoader != null) {
|
||||||
props.put(RuntimeSingleton.RESOURCE_MANAGER_CLASS,
|
props.setProperty(RuntimeSingleton.RESOURCE_MANAGER_CLASS,
|
||||||
SiteResourceManager.class.getName());
|
SiteResourceManager.class.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
// wire up our #import directive
|
// wire up our #import directive
|
||||||
props.put("userdirective", ImportDirective.class.getName());
|
props.setProperty("userdirective", ImportDirective.class.getName());
|
||||||
|
|
||||||
// configure the servlet context logger
|
// configure the servlet context logger
|
||||||
props.put(RuntimeSingleton.RUNTIME_LOG_LOGSYSTEM,
|
props.setProperty(RuntimeSingleton.RUNTIME_LOG_LOGSYSTEM_CLASS,
|
||||||
new ServletContextLogger(getServletContext()));
|
ServletContextLogger.class.getName());
|
||||||
|
|
||||||
// now return our augmented properties
|
// now return our augmented properties
|
||||||
return props;
|
return props;
|
||||||
|
|||||||
Reference in New Issue
Block a user