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/02/06 10:34:16 UTC
DO NOT REPLY [Bug 12989] -
JSTL "c:out" uses body-default, even if value is not NULL or ""
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=12989>.
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=12989
JSTL "c:out" uses body-default, even if value is not NULL or ""
tivv@gtech-ua.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Servlet & JSP API |Standard Taglib
Product|Tomcat 4 |Taglibs
Version|4.1.12 |1.1
------- Additional Comments From tivv@gtech-ua.com 2003-02-06 09:34 -------
Actually there are two problems here:
1) Jasper one - if tag implements body tag support and sometimes body is empty
and sometimes not, then we may have next problem:
a)Tag uses body (bodyContent set)
b)Tag sent to pool (bodyContent set)
b)Tag uses empty body (old bodyContent set).
I've resolved this by setting bodyContent attribute to null before sending tag
to pool:
Generator.java, line 1440:
if (ctxt.getOptions().isPoolingEnabled()) {
//We must reset body before sending to pool if it was set before
if (n.implementsBodyTag() && n.getBody() != null)
{
out.printin(tagHandlerVar);
out.println(".setBodyContent(null);");
}
out.printin(n.getTagHandlerPoolName());
out.print(".reuse(");
out.print(tagHandlerVar);
out.println(");");
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org