()
| 1404 | * Flag as error if an unbalanced end tag appears by itself. |
| 1405 | */ |
| 1406 | private void checkUnbalancedEndTag() throws JasperException { |
| 1407 | |
| 1408 | if (!reader.matches("</")) { |
| 1409 | return; |
| 1410 | } |
| 1411 | |
| 1412 | // Check for unbalanced standard actions |
| 1413 | if (reader.matches("jsp:")) { |
| 1414 | err.jspError(start, "jsp.error.unbalanced.endtag", "jsp:"); |
| 1415 | } |
| 1416 | |
| 1417 | // Check for unbalanced custom actions |
| 1418 | String tagName = reader.parseToken(false); |
| 1419 | int i = tagName.indexOf(':'); |
| 1420 | if (i == -1 || pageInfo.getURI(tagName.substring(0, i)) == null) { |
| 1421 | reader.reset(start); |
| 1422 | return; |
| 1423 | } |
| 1424 | |
| 1425 | err.jspError(start, "jsp.error.unbalanced.endtag", tagName); |
| 1426 | } |
| 1427 | |
| 1428 | /** |
| 1429 | * TagDependentBody := |
no test coverage detected