bundles/org.apache.jasper.glassfish/src/org/apache/jasper/compiler/ParserController.java
private String resolveFileName(String inFileName) {
        String fileName = inFileName.replace('\\', '/');
        boolean isAbsolute = fileName.startsWith("/");
	fileName = isAbsolute ? fileName : baseDirStack.peek() + fileName;
        String baseDir = fileName.substring(0, fileName.lastIndexOf("/") + 1);
	baseDirStack.push(baseDir);
	return fileName;
    }
private String resolveFileName(String inFileName) {
        String fileName = inFileName.replace('\\', '/');
        boolean isAbsolute = fileName.startsWith("/");
	fileName = isAbsolute ? fileName : baseDirStack.peek() + fileName;
        String baseDir = fileName.substring(0, fileName.lastIndexOf("/") + 1);
	baseDirStack.push(baseDir);
	return fileName;
    }
private String resolveFileName ( String inFileName ) { String fileName = inFileName . replace ( ' ' , ' ' ) ; boolean isAbsolute = fileName . startsWith ( "/" ) ; fileName = isAbsolute ? fileName : baseDirStack . peek ( ) + fileName ; String baseDir = fileName . substring ( 0 , fileName . lastIndexOf ( "/" ) + 1 ) ; baseDirStack . push ( baseDir ) ; return fileName ; }
/*
Resolve the name of the file and update baseDirStack() to keep track of
the current base directory for each included file.
The 'root' file is always an 'absolute' path, so no need to put an
initial value in the baseDirStack.
/ * Resolve the name of the file and update baseDirStack () to keep track of the current base directory for each included file . The root file is always an absolute path so no need to put an initial value in the baseDirStack .