horwat      01/04/19 17:00:59

  Modified:    jasper/src/share/org/apache/jasper/compiler
                        TagBeginGenerator.java
  Log:
  A tag handler that implemenst BodyTag is treated as one that implements Iteration 
tag except that doStartTag method can return SKIP_BODY, EVAL_BODY_INCLUDE, 
EVAL_BODY_BUFFERED. Remove the run-time error message caused if EVAL_BODY_INCLUDE is 
returned.
  
  Bugzilla: #1344
  
  Revision  Changes    Path
  1.10      +1 -7      
jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/TagBeginGenerator.java
  
  Index: TagBeginGenerator.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/compiler/TagBeginGenerator.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- TagBeginGenerator.java    2001/04/19 23:43:17     1.9
  +++ TagBeginGenerator.java    2001/04/20 00:00:59     1.10
  @@ -348,13 +348,7 @@
           //        Perhaps, I'll just define an inner classes as necessary for these
           //        types of exceptions? -akv
   
  -        if (implementsBodyTag) {
  -            writer.println("if ("+evalVar+" == Tag.EVAL_BODY_INCLUDE)");
  -            writer.pushIndent();
  -            writer.println("throw new JspTagException(\"Since tag handler 
"+tc.getTagHandlerClass()+
  -                           " implements BodyTag, it can't return 
Tag.EVAL_BODY_INCLUDE\");");
  -            writer.popIndent();
  -        } else {
  +        if (!implementsBodyTag) {
               writer.println("if ("+evalVar+" == BodyTag.EVAL_BODY_BUFFERED)");
               writer.pushIndent();
               writer.println("throw new JspTagException(\"Since tag handler 
"+tc.getTagHandlerClass()+
  
  
  

Reply via email to