public BasicServletConfiguration(ServletContext ctxt) {
super();
this.setServletContext(ctxt);
ResourceLocator l = new WebApplicationResourceLocator(servletContext);
l.setSkipAbsolutePath(true);
l.setSkipClasspath(false);
l.setSkipCurrentDirectory(true);
l.setSkipHomeDirectory(true);
// check for a configuration path in the context parameters
String configurationPath =
ctxt.getInitParameter(CONFIGURATION_PATH_KEY);
if (configurationPath != null
&& configurationPath.trim().length() > 0) {
l.addFilesystemPath(configurationPath);
}
this.setResourceLocator(l);
}