// default to true if ends with x
if (_uri.endsWith("x"))
_parseState.setXml(true);
WebApp app = _jspCompiler.getWebApp();
Path appDir = _jspCompiler.getAppDir();
if (appDir == null && app != null)
appDir = app.getRootDirectory();
if (app != null && app.hasPre23Config()
&& _parseState.getELIgnoredDefault() == null
&& ! _parseState.isXml()) { // jsp/100a
_parseState.setELIgnoredDefault(true);
}
JspConfig jspConfig = null;
if (jspConfig == null && app != null)
jspConfig = (JspConfig) app.getExtension("jsp-config");
ArrayList<JspPropertyGroup> jspList = new ArrayList<JspPropertyGroup>();
_jspPropertyGroup = null;
if (_jspPropertyGroup == null) {
_jspPropertyGroup = _jspCompiler.getJspPropertyGroup();
if (_jspPropertyGroup != null) {
jspList.add(_jspPropertyGroup);
}
}
if (_jspPropertyGroup == null && app != null) {
_jspPropertyGroup = app.getJsp();
if (_jspPropertyGroup != null)
jspList.add(_jspPropertyGroup);
}
if (_jspPropertyGroup == null) {
_jspPropertyGroup = _jspCompiler.getJspPropertyGroup();
if (_jspPropertyGroup != null)
jspList.add(_jspPropertyGroup);
}
if (jspConfig != null) {
jspList.addAll(jspConfig.findJspPropertyGroupList(_uri));
if (_parseState.getELIgnoredDefault() == null)
_parseState.setELIgnoredDefault(false);
}
JspResourceManager resourceManager = _jspCompiler.getResourceManager();
if (resourceManager != null) {
}
else if (app != null)
resourceManager = new AppResourceManager(app);
else {
resourceManager = new AppDirResourceManager(appDir);
}
TagFileManager tagFileManager = _jspCompiler.getTagFileManager();
TaglibManager taglibManager = _jspCompiler.getTaglibManager();
JspPageConfig pageConfig = new JspPageConfig();
for (JspPropertyGroup jspPropertyGroup : jspList) {
ArrayList<String> preludeList = jspPropertyGroup.getIncludePreludeList();
for (int i = 0; preludeList != null && i < preludeList.size(); i++) {
String prelude = preludeList.get(i);
_preludeList.add(prelude);
}
ArrayList<String> codaList = jspPropertyGroup.getIncludeCodaList();
for (int i = 0; codaList != null && i < codaList.size(); i++) {
String coda = codaList.get(i);
_codaList.add(coda);
}
_parseState.setJspPropertyGroup(jspPropertyGroup);
_parseState.setSession(jspPropertyGroup.isSession());
_parseState.setScriptingInvalid(jspPropertyGroup.isScriptingInvalid());
if (jspPropertyGroup.isELIgnored() != null) {
_parseState.setELIgnored(Boolean.TRUE.equals(jspPropertyGroup.isELIgnored()));
}
_parseState.setVelocityEnabled(jspPropertyGroup.isVelocityEnabled());
_parseState.setPageEncoding(jspPropertyGroup.getPageEncoding());
if (Boolean.TRUE.equals(jspPropertyGroup.isXml()))
_parseState.setXml(true);
if (Boolean.FALSE.equals(jspPropertyGroup.isXml())) {
_parseState.setXml(false);
_parseState.setForbidXml(true);
}
if (jspPropertyGroup.getPageEncoding() != null) {
try {
_parseState.setPageEncoding(jspPropertyGroup.getPageEncoding());
} catch (JspParseException e) {
}
}
pageConfig.setStaticEncoding(jspPropertyGroup.isStaticEncoding());
_parseState.setRecycleTags(jspPropertyGroup.isRecycleTags());
_parseState.setTrimWhitespace(jspPropertyGroup.isTrimDirectiveWhitespaces());
_parseState.setDeferredSyntaxAllowedAsLiteral(jspPropertyGroup.isDeferredSyntaxAllowedAsLiteral());
if (jspPropertyGroup.getTldFileSet() != null)
taglibManager.setTldFileSet(jspPropertyGroup.getTldFileSet());
}
if (_jsfPropertyGroup == null)
_jsfPropertyGroup = _jspCompiler.getJsfPropertyGroup();
if (_jsfPropertyGroup == null && app != null)
_jsfPropertyGroup = app.getJsf();
_parseState.setResourceManager(resourceManager);
LineMap lineMap = null;
_tagManager = new ParseTagManager(resourceManager,