Fetch the templates via their path relative to the servlet root since we
now load everything through the servlet. This allows us to be totally application root agnostic. git-svn-id: https://samskivert.googlecode.com/svn/trunk@119 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: DispatcherServlet.java,v 1.9 2001/03/04 06:37:51 mdb Exp $
|
// $Id: DispatcherServlet.java,v 1.10 2001/05/26 03:24:19 mdb Exp $
|
||||||
|
|
||||||
package com.samskivert.webmacro;
|
package com.samskivert.webmacro;
|
||||||
|
|
||||||
@@ -303,8 +303,9 @@ public class DispatcherServlet extends WMServlet
|
|||||||
protected Template selectTemplate (WebContext ctx)
|
protected Template selectTemplate (WebContext ctx)
|
||||||
throws NotFoundException
|
throws NotFoundException
|
||||||
{
|
{
|
||||||
String path = cleanupURI(ctx.getRequest().getRequestURI());
|
// String path = cleanupURI(ctx.getRequest().getRequestURI());
|
||||||
// Log.info("Loading template [path=" + path + "].");
|
String path = ctx.getRequest().getServletPath();
|
||||||
|
Log.info("Loading template [path=" + path + "].");
|
||||||
return getTemplate(path);
|
return getTemplate(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user