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 30098] New: - out is not correct after doStart() of pushBody Tag
Date Wed, 14 Jul 2004 08:30:49 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=30098>.
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=30098

out is not correct after doStart() of pushBody Tag

           Summary: out is not correct after doStart() of pushBody Tag
           Product: Tomcat 4
           Version: 4.1.27
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: f08163@huawei.com


I have a Tag, in doStartTag I add a pushBody(), and in doEndTag I add a popBody
().

in JSP:
  <wface:add label="label"><%= idx %></wface:add>
and I get java code like:
      out = pageContext.getOut();
        ....
  [0] int _jspx_eval_wface_add_0 = _jspx_th_wface_add_0.doStartTag();
      if (_jspx_eval_wface_add_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
            ....
            do {
   [1]        out.print( idx );     
              ....
 
   in [0], call tag's doStartTag, and I have pushBody a new BodyContent, but 
[1] line can't see it, and refer to old JspWriter, it is error.
   in [1],   out != pageContext.getOut()

   I think we need change out to pageContext.getOut() in jsp java code.

---------------------------------------------------------------------
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