Lines 557-563
Link Here
|
557 |
return fileName; |
557 |
return fileName; |
558 |
} |
558 |
} |
559 |
|
559 |
|
560 |
/* |
560 |
/** |
561 |
* Checks to see if the given page contains, as its first element, a <root> |
561 |
* Checks to see if the given page contains, as its first element, a <root> |
562 |
* element whose prefix is bound to the JSP namespace, as in: |
562 |
* element whose prefix is bound to the JSP namespace, as in: |
563 |
* |
563 |
* |
Lines 608-623
Link Here
|
608 |
} |
608 |
} |
609 |
if (index < root.length() && root.charAt(index) == '=') { |
609 |
if (index < root.length() && root.charAt(index) == '=') { |
610 |
index++; |
610 |
index++; |
611 |
while (index < root.length() |
611 |
while (index < root.length() && Character.isWhitespace(root.charAt(index))) { |
612 |
&& Character.isWhitespace(root.charAt(index))) { |
|
|
613 |
index++; |
612 |
index++; |
614 |
} |
613 |
} |
615 |
if (index < root.length() && root.charAt(index++) == '"' |
614 |
|
616 |
&& root.regionMatches(index, JSP_URI, 0, |
615 |
if (index < root.length() && (root.charAt(index) == '"' || root.charAt(index) == '\'')) { |
617 |
JSP_URI.length())) { |
616 |
index++; |
|
|
617 |
if (root.regionMatches(index, JSP_URI, 0, JSP_URI.length())) { |
618 |
return true; |
618 |
return true; |
619 |
} |
619 |
} |
620 |
} |
620 |
} |
|
|
621 |
} |
621 |
|
622 |
|
622 |
return false; |
623 |
return false; |
623 |
} |
624 |
} |