You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/09/27 01:00:32 UTC

DO NOT REPLY [Bug 3845] New: - Body content is supposed to be empty

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3845>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3845

Body content is supposed to be empty

           Summary: Body content is supposed to be empty
           Product: Tomcat 4
           Version: 4.0 Final
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: simon_g_brown@yahoo.com


Once you have defined a custom tag to have a body-content of empty in the TLD 
file, there seem to be problems using it on the page in anything but the 
shortened form (i.e. <xxx:yyy/>). You get an error when you try to use another 
form such as those defined in JSP 2.3.4 (Empty Elements), for example 
<xxx:yyy></xxx:yyy>. The error given is that the "body content is supposed to 
be empty", even though the body content is empty. Here's the top of the stack 
trace...

org.apache.jasper.compiler.ParseException: /xxx/yyy.jsp(11,16) Body is supposed 
to be empty for xxx:yyy
	at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:842)
	at org.apache.jasper.compiler.Parser.parse(Parser.java:1126)
	at org.apache.jasper.compiler.Parser.parse(Parser.java:1091)
	at org.apache.jasper.compiler.Parser.parse(Parser.java:1087)
	at org.apache.jasper.compiler.ParserController.parse
(ParserController.java:213)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
	at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:528)