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:
@@ -275,6 +275,10 @@ public class DispatcherServlet extends VelocityServlet
|
|||||||
int siteId = ident.identifySite(req);
|
int siteId = ident.identifySite(req);
|
||||||
ctx.put("__siteid__", new Integer(siteId));
|
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
|
// then select the template
|
||||||
Template tmpl = selectTemplate(siteId, ictx);
|
Template tmpl = selectTemplate(siteId, ictx);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user