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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>