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 2003/01/10 18:30:02 UTC
DO NOT REPLY [Bug 15961] New: -
getBodyContent() is not returning null when the action has only jsp:attribute actions within the body.
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=15961>.
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=15961
getBodyContent() is not returning null when the action has only jsp:attribute actions within the body.
Summary: getBodyContent() is not returning null when the action
has only jsp:attribute actions within the body.
Product: Tomcat 5
Version: Nightly Build
Platform: All
OS/Version: All
Status: NEW
Severity: Major
Priority: Other
Component: Jasper2
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: Ryan.Lubke@Sun.COM
JSP.5.11 states:
"If one or more jsp:attribute elements appear in the body of a tag invocation
but no jsp:body element appears, it is the equivalent of the tag having an empty
body"
Consider the following example using a tag handler that extends BodyTagSupport
and implements DynamicAttributes
<body:cemptybody>
<jsp:attribute name="attr1">value1</jsp:attribute>
<jsp:attribute name="attr2">value2</jsp:attribute>
</body:cemptybody>
The cemptybody action attempts to validate that a call to getBodyContent()
returns null.
Keep in mind that the javadocs state that setBodyContent() will not be invoked for
an empty tag.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>