jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From felip...@apache.org
Subject cvs commit: jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/core OutSupport.java
Date Wed, 21 Jan 2004 19:24:56 GMT
felipeal    2004/01/21 11:24:56

  Modified:    standard/src/org/apache/taglibs/standard/tag/common/core
                        OutSupport.java
  Log:
  fix for bug 26320: reset bodyContent on doStartTag(), otherwise c:out misbehaves when tag
handlers are pooled - thanks Jailton Lopes for reporting that issue
  
  Revision  Changes    Path
  1.11      +2 -1      jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/core/OutSupport.java
  
  Index: OutSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/core/OutSupport.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- OutSupport.java	4 Aug 2003 17:44:37 -0000	1.10
  +++ OutSupport.java	21 Jan 2004 19:24:56 -0000	1.11
  @@ -120,7 +120,8 @@
       public int doStartTag() throws JspException {
   
         needBody = false;			// reset state related to 'default'
  -
  +      this.bodyContent = null;  // clean-up body (just in case container is pooling tag
handlers)
  +      
         try {
   	// print value if available; otherwise, try 'default'
   	if (value != null) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org


Mime
View raw message