(Node parent)
| 1365 | * TemplateText |
| 1366 | */ |
| 1367 | private void parseElementsTemplateText(Node parent) throws JasperException { |
| 1368 | start = reader.mark(); |
| 1369 | if (reader.matches("<%--")) { |
| 1370 | parseComment(parent); |
| 1371 | } else if (reader.matches("<%@")) { |
| 1372 | parseDirective(parent); |
| 1373 | } else if (reader.matches("<jsp:directive.")) { |
| 1374 | parseXMLDirective(parent); |
| 1375 | } else if (reader.matches("<%!")) { |
| 1376 | err.jspError(reader.mark(), "jsp.error.not.in.template", "Declarations"); |
| 1377 | } else if (reader.matches("<jsp:declaration")) { |
| 1378 | err.jspError(reader.mark(), "jsp.error.not.in.template", "Declarations"); |
| 1379 | } else if (reader.matches("<%=")) { |
| 1380 | err.jspError(reader.mark(), "jsp.error.not.in.template", "Expressions"); |
| 1381 | } else if (reader.matches("<jsp:expression")) { |
| 1382 | err.jspError(reader.mark(), "jsp.error.not.in.template", "Expressions"); |
| 1383 | } else if (reader.matches("<%")) { |
| 1384 | err.jspError(reader.mark(), "jsp.error.not.in.template", "Scriptlets"); |
| 1385 | } else if (reader.matches("<jsp:scriptlet")) { |
| 1386 | err.jspError(reader.mark(), "jsp.error.not.in.template", "Scriptlets"); |
| 1387 | } else if (reader.matches("<jsp:text")) { |
| 1388 | err.jspError(reader.mark(), "jsp.error.not.in.template", "<jsp:text"); |
| 1389 | } else if (!pageInfo.isELIgnored() && reader.matches("${")) { |
| 1390 | err.jspError(reader.mark(), "jsp.error.not.in.template", "Expression language"); |
| 1391 | } else if (!pageInfo.isELIgnored() && !pageInfo.isDeferredSyntaxAllowedAsLiteral() && reader.matches("#{")) { |
| 1392 | err.jspError(reader.mark(), "jsp.error.not.in.template", "Expression language"); |
| 1393 | } else if (reader.matches("<jsp:")) { |
| 1394 | err.jspError(reader.mark(), "jsp.error.not.in.template", "Standard actions"); |
| 1395 | } else if (parseCustomTag(parent)) { |
| 1396 | err.jspError(reader.mark(), "jsp.error.not.in.template", "Custom actions"); |
| 1397 | } else { |
| 1398 | checkUnbalancedEndTag(); |
| 1399 | parseTemplateText(parent); |
| 1400 | } |
| 1401 | } |
| 1402 | |
| 1403 | /* |
| 1404 | * Flag as error if an unbalanced end tag appears by itself. |
no test coverage detected