tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30067] New: - "Scripting elements are disallowed here" exception behind scriptless tag
Date Tue, 13 Jul 2004 09:52:11 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30067>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30067

"Scripting elements are disallowed here" exception behind scriptless tag

           Summary: "Scripting elements are disallowed here" exception
                    behind scriptless tag
           Product: Tomcat 5
           Version: 5.0.25
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: mschovanek@netbeans.org


[jdk 1.4.2_04]

I got the exception for a script-less tag following by scriplet section in JSP
in XML syntax. The scriptlet is *behind* the tag. The same code in Standard JSP
syntax works for me.

- xindex.jspx - throws the exception:
<jsp:root version="2.0"
    xmlns:jsp="http://java.sun.com/JSP/Page"
    xmlns:tag="urn:jsptagdir:/WEB-INF/tags">
    <tag:EmptyTag/>
    <jsp:scriptlet>String x;</jsp:scriptlet>
</jsp:root>

- index.jsp - works for me:
<%@ taglib tagdir="/WEB-INF/tags/" prefix="tag"%>
<tag:EmptyTag/>
<jsp:scriptlet>String x;</jsp:scriptlet>

- EmptyTag.tag
<%@tag body-content="scriptless"%>
<h1>Empty Tag</h1>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message