jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sh...@apache.org
Subject cvs commit: jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/core OutSupport.java
Date Tue, 14 Jan 2003 20:35:03 GMT
shawn       2003/01/14 12:35:02

  Modified:    standard/src/org/apache/taglibs/standard/tag/common/core
                        OutSupport.java
  Log:
  Fix for bug 16069: "<c:out> does not handle defaults properly"
  
  The 'needBody' variable, which conveys information from doStartTag() to
  doEndTag(), needed to be reset in doStartTag(); initializing it once is
  clearly insufficient in cases of tag-handler reuse.  Oops!
  
  Revision  Changes    Path
  1.6       +3 -0      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.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- OutSupport.java	30 Apr 2002 02:26:23 -0000	1.5
  +++ OutSupport.java	14 Jan 2003 20:35:02 -0000	1.6
  @@ -118,6 +118,9 @@
   
       // evaluates 'value' and determines if the body should be evaluted
       public int doStartTag() throws JspException {
  +
  +      needBody = false;			// reset state related to 'default'
  +
         try {
   	// print value if available; otherwise, try 'default'
   	if (value != null) {
  
  
  

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


Mime
View raw message