private String defaultIsXml = null; // unspecified
private String defaultIsELIgnored = null; // unspecified
private String defaultIsScriptingInvalid = null;
- private String defaultDefferedSyntaxAllowedAsLitteral = null;
+ private String defaultDeferedSyntaxAllowedAsLitteral = null;
private String defaultTrimDirectiveWhitespaces = null;
private JspProperty defaultJspProperty;
}
private double getVersion(TreeNode webApp) {
- if (webApp == null) {
- String v = webApp.findAttribute("version");
- if (v != null) {
- try {
- return Double.parseDouble(v);
- } catch (Exception e) {}
+ String v = webApp.findAttribute("version");
+ if (v != null) {
+ try {
+ return Double.parseDouble(v);
+ } catch (NumberFormatException e) {
}
}
- return 2.4;
+ return 2.3;
}
private void processWebDotXml(ServletContext ctxt) throws JasperException {
String isXml = null;
Vector includePrelude = new Vector();
Vector includeCoda = new Vector();
- String defferedSyntaxAllowedAsLitteral = null;
+ String deferedSyntaxAllowedAsLitteral = null;
String trimDirectiveWhitespaces = null;
while (list.hasNext()) {
else if ("include-coda".equals(tname))
includeCoda.addElement(element.getBody());
else if ("deferred-syntax-allowed-as-literal".equals(tname))
- defferedSyntaxAllowedAsLitteral = element.getBody();
+ deferedSyntaxAllowedAsLitteral = element.getBody();
else if ("trim-directive-whitespaces".equals(tname))
trimDirectiveWhitespaces = element.getBody();
}
pageEncoding,
includePrelude,
includeCoda,
- defferedSyntaxAllowedAsLitteral,
+ deferedSyntaxAllowedAsLitteral,
trimDirectiveWhitespaces);
JspPropertyGroup propertyGroup =
new JspPropertyGroup(path, extension, property);
defaultJspProperty = new JspProperty(defaultIsXml,
defaultIsELIgnored,
defaultIsScriptingInvalid,
- null, null, null, defaultDefferedSyntaxAllowedAsLitteral,
+ null, null, null, defaultDeferedSyntaxAllowedAsLitteral,
defaultTrimDirectiveWhitespaces);
initialized = true;
}
JspPropertyGroup elIgnoredMatch = null;
JspPropertyGroup scriptingInvalidMatch = null;
JspPropertyGroup pageEncodingMatch = null;
- JspPropertyGroup defferedSyntaxAllowedAsLitteralMatch = null;
+ JspPropertyGroup deferedSyntaxAllowedAsLitteralMatch = null;
JspPropertyGroup trimDirectiveWhitespacesMatch = null;
Iterator iter = jspProperties.iterator();
if (jp.getPageEncoding() != null) {
pageEncodingMatch = selectProperty(pageEncodingMatch, jpg);
}
- if (jp.isDefferedSyntaxAllowedAsLitteral() != null) {
- defferedSyntaxAllowedAsLitteralMatch =
- selectProperty(defferedSyntaxAllowedAsLitteralMatch, jpg);
+ if (jp.isDeferedSyntaxAllowedAsLitteral() != null) {
+ deferedSyntaxAllowedAsLitteralMatch =
+ selectProperty(deferedSyntaxAllowedAsLitteralMatch, jpg);
}
if (jp.isTrimDirectiveWhitespaces() != null) {
trimDirectiveWhitespacesMatch =
String isELIgnored = defaultIsELIgnored;
String isScriptingInvalid = defaultIsScriptingInvalid;
String pageEncoding = null;
- String isDefferedSyntaxAllowedAsLitteral = defaultDefferedSyntaxAllowedAsLitteral;
+ String isDeferedSyntaxAllowedAsLitteral = defaultDeferedSyntaxAllowedAsLitteral;
String isTrimDirectiveWhitespaces = defaultTrimDirectiveWhitespaces;
if (isXmlMatch != null) {
if (pageEncodingMatch != null) {
pageEncoding = pageEncodingMatch.getJspProperty().getPageEncoding();
}
- if (defferedSyntaxAllowedAsLitteralMatch != null) {
- isDefferedSyntaxAllowedAsLitteral =
- defferedSyntaxAllowedAsLitteralMatch.getJspProperty().isDefferedSyntaxAllowedAsLitteral();
+ if (deferedSyntaxAllowedAsLitteralMatch != null) {
+ isDeferedSyntaxAllowedAsLitteral =
+ deferedSyntaxAllowedAsLitteralMatch.getJspProperty().isDeferedSyntaxAllowedAsLitteral();
}
if (trimDirectiveWhitespacesMatch != null) {
isTrimDirectiveWhitespaces =
return new JspProperty(isXml, isELIgnored, isScriptingInvalid,
pageEncoding, includePreludes, includeCodas,
- isDefferedSyntaxAllowedAsLitteral, isTrimDirectiveWhitespaces);
+ isDeferedSyntaxAllowedAsLitteral, isTrimDirectiveWhitespaces);
}
/**
private String pageEncoding;
private Vector includePrelude;
private Vector includeCoda;
- private String defferedSyntaxAllowedAsLitteral;
+ private String deferedSyntaxAllowedAsLitteral;
private String trimDirectiveWhitespaces;
public JspProperty(String isXml, String elIgnored,
String scriptingInvalid, String pageEncoding,
Vector includePrelude, Vector includeCoda,
- String defferedSyntaxAllowedAsLitteral,
+ String deferedSyntaxAllowedAsLitteral,
String trimDirectiveWhitespaces) {
this.isXml = isXml;
this.pageEncoding = pageEncoding;
this.includePrelude = includePrelude;
this.includeCoda = includeCoda;
- this.defferedSyntaxAllowedAsLitteral = defferedSyntaxAllowedAsLitteral;
+ this.deferedSyntaxAllowedAsLitteral = deferedSyntaxAllowedAsLitteral;
this.trimDirectiveWhitespaces = trimDirectiveWhitespaces;
}
return includeCoda;
}
- public String isDefferedSyntaxAllowedAsLitteral() {
- return defferedSyntaxAllowedAsLitteral;
+ public String isDeferedSyntaxAllowedAsLitteral() {
+ return deferedSyntaxAllowedAsLitteral;
}
public String isTrimDirectiveWhitespaces() {