View | Details | Raw Unified | Return to bug 55207
Collapse All | Expand All

(-)test/webapp/WEB-INF/tags/bug55198.tagx (-2 lines)
Lines 17-25 Link Here
17
-->
17
-->
18
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
18
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
19
<jsp:directive.tag body-content="scriptless" />
19
<jsp:directive.tag body-content="scriptless" />
20
<jsp:text>
21
  <a href="#" onclick="window.alert(&quot;${'foo'}&quot;)">foo</a>
20
  <a href="#" onclick="window.alert(&quot;${'foo'}&quot;)">foo</a>
22
  <a href="#" onclick="window.alert(&quot;bar&quot;)">bar</a>
21
  <a href="#" onclick="window.alert(&quot;bar&quot;)">bar</a>
23
</jsp:text>
24
<jsp:doBody />
22
<jsp:doBody />
25
</jsp:root>
23
</jsp:root>
(-)java/org/apache/jasper/compiler/JspDocumentParser.java (-4 / +1 lines)
Lines 270-280 Link Here
270
            return;
270
            return;
271
        }
271
        }
272
272
273
        String currentPrefix = getPrefix(current.getQName());
274
275
        // jsp:text must not have any subelements
273
        // jsp:text must not have any subelements
276
        if (JSP_URI.equals(uri) && TEXT_ACTION.equals(current.getLocalName())
274
        if (current instanceof Node.JspText) {
277
                && "jsp".equals(currentPrefix)) {
278
            throw new SAXParseException(
275
            throw new SAXParseException(
279
                Localizer.getMessage("jsp.error.text.has_subelement"),
276
                Localizer.getMessage("jsp.error.text.has_subelement"),
280
                locator);
277
                locator);

Return to bug 55207