(String file, Node parent)
| 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)* |
no test coverage detected