[prev in list] [next in list] [prev in thread] [next in thread]
List: xang-dev
Subject: RE: problems with internal urls and directory specifications
From: "S. Mike Dierken" <mike () KnowNow ! com>
Date: 2000-09-12 18:21:48
[Download RAW message or body]
Andy,
Here is some script which will resolve the missing trailing slash problem:
// require a trailing slash.
var path;
path = context.getRequest().getPathInfo();
if (path.charAt(path.length-1) != '/')
{
app.redirectTo(context,path+"/");
return;
}
This goes in system.script.xml in the get() function, below the check for
"if (xml == null)".
Unfortunately, there are several copies of system.script.xml. I'll change
the samples to move the system.script.xml file to a parent directory, and
have all apps include that one.
Mike
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic