Having the context path around always will help us to avoid ever hard

coding it.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@1529 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2004-11-19 17:36:47 +00:00
parent 2618f83f52
commit 7ede7ff62e
@@ -275,6 +275,10 @@ public class DispatcherServlet extends VelocityServlet
int siteId = ident.identifySite(req);
ctx.put("__siteid__", new Integer(siteId));
// put the context path in the context as well to make it easier
// to construct full paths
ctx.put("context_path", req.getContextPath());
// then select the template
Template tmpl = selectTemplate(siteId, ictx);