Geir didn't like velocityWillInit(), so he created initVelocity() which we

override when setting the application context.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@417 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2001-11-02 18:46:48 +00:00
parent c0ca26e578
commit 24b66722d2
@@ -1,5 +1,5 @@
//
// $Id: DispatcherServlet.java,v 1.7 2001/11/02 02:30:54 mdb Exp $
// $Id: DispatcherServlet.java,v 1.8 2001/11/02 18:46:48 mdb Exp $
//
// samskivert library - useful routines for java programs
// Copyright (C) 2001 Michael Bayne
@@ -194,10 +194,12 @@ public class DispatcherServlet extends VelocityServlet
}
// documentation inherited
protected void velocityWillInit (Properties props)
protected void initVelocity (ServletConfig config)
throws ServletException
{
// stick the servlet context into the Velocity application context
Velocity.setApplicationContext(getServletContext());
super.initVelocity(config);
}
/**