MCPcopy Index your code
hub / github.com/apache/tomcat / processIncludeDirective

Method processIncludeDirective

java/org/apache/jasper/compiler/Parser.java:309–329  ·  view source on GitHub ↗
(String file, Node parent)

Source from the content-addressed store, hash-verified

307 * Invokes parserController to parse the included page
308 */
309 private void processIncludeDirective(String file, Node parent) throws JasperException {
310 if (file == null) {
311 return;
312 }
313
314 try {
315 /*
316 * Include directive defined by 1.10.3 which references 1.2.1 for the file attribute. As per 1.2.1, paths
317 * starting with "/" are context relative.
318 */
319 if (file.startsWith("/")) {
320 parserController.parse(file, parent, null);
321 } else {
322 parserController.parse(file, parent, jar);
323 }
324 } catch (FileNotFoundException ex) {
325 err.jspError(start, "jsp.error.file.not.found", file);
326 } catch (Exception e) {
327 err.jspError(start, e.getMessage());
328 }
329 }
330
331 /*
332 * Parses a page directive with the following syntax: PageDirective ::= ( S Attribute)*

Callers 2

parseIncludeDirectiveMethod · 0.95
addIncludeMethod · 0.95

Calls 4

jspErrorMethod · 0.65
getMessageMethod · 0.65
startsWithMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected