(Node parent)
| 1318 | * CustomActionBody ) | TemplateText |
| 1319 | */ |
| 1320 | private void parseElementsScriptless(Node parent) throws JasperException { |
| 1321 | // Keep track of how many scriptless nodes we've encountered |
| 1322 | // so we know whether our child nodes are forced scriptless |
| 1323 | scriptlessCount++; |
| 1324 | |
| 1325 | start = reader.mark(); |
| 1326 | if (reader.matches("<%--")) { |
| 1327 | parseComment(parent); |
| 1328 | } else if (reader.matches("<%@")) { |
| 1329 | parseDirective(parent); |
| 1330 | } else if (reader.matches("<jsp:directive.")) { |
| 1331 | parseXMLDirective(parent); |
| 1332 | } else if (reader.matches("<%!")) { |
| 1333 | err.jspError(reader.mark(), "jsp.error.no.scriptlets"); |
| 1334 | } else if (reader.matches("<jsp:declaration")) { |
| 1335 | err.jspError(reader.mark(), "jsp.error.no.scriptlets"); |
| 1336 | } else if (reader.matches("<%=")) { |
| 1337 | err.jspError(reader.mark(), "jsp.error.no.scriptlets"); |
| 1338 | } else if (reader.matches("<jsp:expression")) { |
| 1339 | err.jspError(reader.mark(), "jsp.error.no.scriptlets"); |
| 1340 | } else if (reader.matches("<%")) { |
| 1341 | err.jspError(reader.mark(), "jsp.error.no.scriptlets"); |
| 1342 | } else if (reader.matches("<jsp:scriptlet")) { |
| 1343 | err.jspError(reader.mark(), "jsp.error.no.scriptlets"); |
| 1344 | } else if (reader.matches("<jsp:text")) { |
| 1345 | parseXMLTemplateText(parent); |
| 1346 | } else if (!pageInfo.isELIgnored() && reader.matches("${")) { |
| 1347 | parseELExpression(parent, '$'); |
| 1348 | } else if (!pageInfo.isELIgnored() && !pageInfo.isDeferredSyntaxAllowedAsLiteral() && reader.matches("#{")) { |
| 1349 | parseELExpression(parent, '#'); |
| 1350 | } else if (reader.matches("<jsp:")) { |
| 1351 | parseStandardAction(parent); |
| 1352 | } else if (!parseCustomTag(parent)) { |
| 1353 | checkUnbalancedEndTag(); |
| 1354 | parseTemplateText(parent); |
| 1355 | } |
| 1356 | |
| 1357 | scriptlessCount--; |
| 1358 | } |
| 1359 | |
| 1360 | /* |
| 1361 | * TemplateTextBody ::= ( '<%--' JSPCommentBody ) | ( '<%@' DirectiveBody ) | ( '<jsp:directive.' XMLDirectiveBody ) |
no test coverage detected