tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From man...@hyperreal.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/jasper/compiler TagBeginGenerator.java
Date Fri, 22 Oct 1999 01:11:20 GMT
mandar      99/10/21 18:11:20

  Modified:    src/examples/WEB-INF/classes/jsp/tags/examples Tag:
                        TOMCAT_J2EE_10F_102199 ExampleTagBase.java
                        FooTag.java LogTag.java
               src/share/javax/servlet/jsp/tagext Tag:
                        TOMCAT_J2EE_10F_102199 BodyTag.java
                        BodyTagSupport.java TagSupport.java
               src/share/org/apache/jasper/compiler Tag:
                        TOMCAT_J2EE_10F_102199 TagBeginGenerator.java
  Added:       src/share/javax/servlet/jsp Tag: TOMCAT_J2EE_10F_102199
                        JspTagException.java
  Removed:     src/share/javax/servlet/jsp Tag: TOMCAT_J2EE_10F_102199
                        JspError.java
  Log:
  Getting RI in sync with some PR2 changes to tag-extension.
  
  Submitted by:  Mandar
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +2 -2      jakarta-tomcat/src/examples/WEB-INF/classes/jsp/tags/examples/ExampleTagBase.java
  
  Index: ExampleTagBase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/examples/WEB-INF/classes/jsp/tags/examples/ExampleTagBase.java,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -r1.1 -r1.1.2.1
  --- ExampleTagBase.java	1999/10/20 11:13:41	1.1
  +++ ExampleTagBase.java	1999/10/22 01:11:14	1.1.2.1
  @@ -32,10 +32,10 @@
   
       // Default implementations for BodyTag methods as well
       // just in case a tag decides to implement BodyTag.
  -    public void doInitBody() throws JspError {
  +    public void doInitBody() throws JspException {
       }
   
  -    public int doAfterBody() throws JspError {
  +    public int doAfterBody() throws JspException {
           return SKIP_BODY;
       }
   
  
  
  
  1.2.2.1   +4 -4      jakarta-tomcat/src/examples/WEB-INF/classes/jsp/tags/examples/FooTag.java
  
  Index: FooTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/examples/WEB-INF/classes/jsp/tags/examples/FooTag.java,v
  retrieving revision 1.2
  retrieving revision 1.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- FooTag.java	1999/10/20 11:13:41	1.2
  +++ FooTag.java	1999/10/22 01:11:14	1.2.2.1
  @@ -41,16 +41,16 @@
        *
        * @return EVAL_BODY_INCLUDE
        */
  -    public int doStartTag() {
  +    public int doStartTag() throws JspException {
   	return EVAL_BODY_TAG;
       }
   
  -    public void doInitBody() throws JspError {
  +    public void doInitBody() throws JspException {
           pageContext.setAttribute("member", atts[i]);
           i++;
       }
       
  -    public int doAfterBody() throws JspError {
  +    public int doAfterBody() throws JspException {
           try {
               if (i == 3) {
                   bodyOut.writeOut(bodyOut.getEnclosingWriter());
  @@ -60,7 +60,7 @@
               i++;
               return EVAL_BODY_TAG;
           } catch (IOException ex) {
  -            throw new JspError(ex.toString());
  +            throw new JspTagException(ex.toString());
           }
       }
   }
  
  
  
  1.2.2.1   +3 -3      jakarta-tomcat/src/examples/WEB-INF/classes/jsp/tags/examples/LogTag.java
  
  Index: LogTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/examples/WEB-INF/classes/jsp/tags/examples/LogTag.java,v
  retrieving revision 1.2
  retrieving revision 1.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- LogTag.java	1999/10/20 11:13:41	1.2
  +++ LogTag.java	1999/10/22 01:11:14	1.2.2.1
  @@ -24,11 +24,11 @@
               toBrowser = false;
       }
   
  -    public int doStartTag() {
  +    public int doStartTag() throws JspException {
           return EVAL_BODY_TAG;
       }
       
  -    public int doAfterBody() throws JspError {
  +    public int doAfterBody() throws JspException {
           try {
               String s = bodyOut.getString();
               System.err.println(s);
  @@ -36,7 +36,7 @@
                   bodyOut.writeOut(bodyOut.getEnclosingWriter());
               return SKIP_BODY;
           } catch (IOException ex) {
  -            throw new JspError(ex.toString());
  +            throw new JspTagException(ex.toString());
           }
       }
   }
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +45 -0     jakarta-tomcat/src/share/javax/servlet/jsp/Attic/JspTagException.java
  
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.2.2.1   +20 -60    jakarta-tomcat/src/share/javax/servlet/jsp/tagext/BodyTag.java
  
  Index: BodyTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/javax/servlet/jsp/tagext/BodyTag.java,v
  retrieving revision 1.2
  retrieving revision 1.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- BodyTag.java	1999/10/20 11:37:21	1.2
  +++ BodyTag.java	1999/10/22 01:11:17	1.2.2.1
  @@ -1,63 +1,23 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/javax/servlet/jsp/tagext/BodyTag.java,v
1.2 1999/10/20 11:37:21 akv Exp $
  - * $Revision: 1.2 $
  - * $Date: 1999/10/20 11:37:21 $
  - *
  - * ====================================================================
  + * @(#)BodyTag.java	1.12 99/10/21
    * 
  - * The Apache Software License, Version 1.1
  - *
  - * Copyright (c) 1999 The Apache Software Foundation.  All rights 
  - * reserved.
  - *
  - * Redistribution and use in source and binary forms, with or without
  - * modification, are permitted provided that the following conditions
  - * are met:
  - *
  - * 1. Redistributions of source code must retain the above copyright
  - *    notice, this list of conditions and the following disclaimer. 
  - *
  - * 2. Redistributions in binary form must reproduce the above copyright
  - *    notice, this list of conditions and the following disclaimer in
  - *    the documentation and/or other materials provided with the
  - *    distribution.
  - *
  - * 3. The end-user documentation included with the redistribution, if
  - *    any, must include the following acknowlegement:  
  - *       "This product includes software developed by the 
  - *        Apache Software Foundation (http://www.apache.org/)."
  - *    Alternately, this acknowlegement may appear in the software itself,
  - *    if and wherever such third-party acknowlegements normally appear.
  - *
  - * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
  - *    Foundation" must not be used to endorse or promote products derived
  - *    from this software without prior written permission. For written 
  - *    permission, please contact apache@apache.org.
  - *
  - * 5. Products derived from this software may not be called "Apache"
  - *    nor may "Apache" appear in their names without prior written
  - *    permission of the Apache Group.
  - *
  - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  - * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  - * SUCH DAMAGE.
  - * ====================================================================
  - *
  - * This software consists of voluntary contributions made by many
  - * individuals on behalf of the Apache Software Foundation.  For more
  - * information on the Apache Software Foundation, please see
  - * <http://www.apache.org/>.
  - *
  - */ 
  + * Copyright (c) 1999 Sun Microsystems, Inc. All Rights Reserved.
  + * 
  + * This software is the confidential and proprietary information of Sun
  + * Microsystems, Inc. ("Confidential Information").  You shall not
  + * disclose such Confidential Information and shall use it only in
  + * accordance with the terms of the license agreement you entered into
  + * with Sun.
  + * 
  + * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  + * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  + * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  + * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  + * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  + * THIS SOFTWARE OR ITS DERIVATIVES.
  + * 
  + * CopyrightVersion 1.0
  + */
    
   package javax.servlet.jsp.tagext;
   
  @@ -132,7 +92,7 @@
        * @seealso #doAfterBody
        */
   
  -    void doInitBody() throws JspError;
  +    void doInitBody() throws JspException;
   
       /**
        * Actions after some body has been evaluated.
  @@ -151,5 +111,5 @@
        * @seealso #doInitBody
        */
   
  -    int doAfterBody() throws JspError;
  +    int doAfterBody() throws JspException;
   }
  
  
  
  1.2.2.1   +37 -60    jakarta-tomcat/src/share/javax/servlet/jsp/tagext/BodyTagSupport.java
  
  Index: BodyTagSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/javax/servlet/jsp/tagext/BodyTagSupport.java,v
  retrieving revision 1.2
  retrieving revision 1.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- BodyTagSupport.java	1999/10/20 11:40:29	1.2
  +++ BodyTagSupport.java	1999/10/22 01:11:17	1.2.2.1
  @@ -1,63 +1,23 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/javax/servlet/jsp/tagext/BodyTagSupport.java,v
1.2 1999/10/20 11:40:29 akv Exp $
  - * $Revision: 1.2 $
  - * $Date: 1999/10/20 11:40:29 $
  - *
  - * ====================================================================
  + * @(#)BodyTagSupport.java	1.10 99/10/21
    * 
  - * The Apache Software License, Version 1.1
  - *
  - * Copyright (c) 1999 The Apache Software Foundation.  All rights 
  - * reserved.
  - *
  - * Redistribution and use in source and binary forms, with or without
  - * modification, are permitted provided that the following conditions
  - * are met:
  - *
  - * 1. Redistributions of source code must retain the above copyright
  - *    notice, this list of conditions and the following disclaimer. 
  - *
  - * 2. Redistributions in binary form must reproduce the above copyright
  - *    notice, this list of conditions and the following disclaimer in
  - *    the documentation and/or other materials provided with the
  - *    distribution.
  - *
  - * 3. The end-user documentation included with the redistribution, if
  - *    any, must include the following acknowlegement:  
  - *       "This product includes software developed by the 
  - *        Apache Software Foundation (http://www.apache.org/)."
  - *    Alternately, this acknowlegement may appear in the software itself,
  - *    if and wherever such third-party acknowlegements normally appear.
  - *
  - * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
  - *    Foundation" must not be used to endorse or promote products derived
  - *    from this software without prior written permission. For written 
  - *    permission, please contact apache@apache.org.
  - *
  - * 5. Products derived from this software may not be called "Apache"
  - *    nor may "Apache" appear in their names without prior written
  - *    permission of the Apache Group.
  - *
  - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  - * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  - * SUCH DAMAGE.
  - * ====================================================================
  - *
  - * This software consists of voluntary contributions made by many
  - * individuals on behalf of the Apache Software Foundation.  For more
  - * information on the Apache Software Foundation, please see
  - * <http://www.apache.org/>.
  - *
  - */ 
  + * Copyright (c) 1999 Sun Microsystems, Inc. All Rights Reserved.
  + * 
  + * This software is the confidential and proprietary information of Sun
  + * Microsystems, Inc. ("Confidential Information").  You shall not
  + * disclose such Confidential Information and shall use it only in
  + * accordance with the terms of the license agreement you entered into
  + * with Sun.
  + * 
  + * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  + * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  + * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  + * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  + * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  + * THIS SOFTWARE OR ITS DERIVATIVES.
  + * 
  + * CopyrightVersion 1.0
  + */
    
   package javax.servlet.jsp.tagext;
   
  @@ -91,6 +51,23 @@
       }
   
       /**
  +     * Process the start tag for this instance.
  +     *
  +     * The doStartTag() method assumes that all setter methods have been
  +     * invoked before.
  +     *
  +     * When this method is invoked, the body has not yet been invoked.
  +     *
  +     * @returns EVAL_BODY_TAG if the tag wants to process body, SKIP_BODY if it
  +     * does ont want to process it.
  +     */
  + 
  +    public int doStartTag() throws JspException {
  +        return EVAL_BODY_TAG;
  +    }
  +
  +
  +    /**
        * Process the end tag. This method will be called on all Tag objects.
        *
        * All instance state associated with this instance must be reset.
  @@ -129,7 +106,7 @@
        * @seealso #doAfterBody
        */
   
  -    public void doInitBody() {
  +    public void doInitBody() throws JspException {
       }
   
       /**
  @@ -149,7 +126,7 @@
        * @seealso #doInitBody
        */
   
  -    public int doAfterBody() throws JspError {
  +    public int doAfterBody() throws JspException {
    	return SKIP_BODY;
       }
   
  
  
  
  1.2.2.1   +22 -62    jakarta-tomcat/src/share/javax/servlet/jsp/tagext/TagSupport.java
  
  Index: TagSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/javax/servlet/jsp/tagext/TagSupport.java,v
  retrieving revision 1.2
  retrieving revision 1.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- TagSupport.java	1999/10/20 21:36:19	1.2
  +++ TagSupport.java	1999/10/22 01:11:17	1.2.2.1
  @@ -1,63 +1,23 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/javax/servlet/jsp/tagext/TagSupport.java,v
1.2 1999/10/20 21:36:19 akv Exp $
  - * $Revision: 1.2 $
  - * $Date: 1999/10/20 21:36:19 $
  - *
  - * ====================================================================
  + * @(#)TagSupport.java	1.13 99/10/21
    * 
  - * The Apache Software License, Version 1.1
  - *
  - * Copyright (c) 1999 The Apache Software Foundation.  All rights 
  - * reserved.
  - *
  - * Redistribution and use in source and binary forms, with or without
  - * modification, are permitted provided that the following conditions
  - * are met:
  - *
  - * 1. Redistributions of source code must retain the above copyright
  - *    notice, this list of conditions and the following disclaimer. 
  - *
  - * 2. Redistributions in binary form must reproduce the above copyright
  - *    notice, this list of conditions and the following disclaimer in
  - *    the documentation and/or other materials provided with the
  - *    distribution.
  - *
  - * 3. The end-user documentation included with the redistribution, if
  - *    any, must include the following acknowlegement:  
  - *       "This product includes software developed by the 
  - *        Apache Software Foundation (http://www.apache.org/)."
  - *    Alternately, this acknowlegement may appear in the software itself,
  - *    if and wherever such third-party acknowlegements normally appear.
  - *
  - * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
  - *    Foundation" must not be used to endorse or promote products derived
  - *    from this software without prior written permission. For written 
  - *    permission, please contact apache@apache.org.
  - *
  - * 5. Products derived from this software may not be called "Apache"
  - *    nor may "Apache" appear in their names without prior written
  - *    permission of the Apache Group.
  - *
  - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  - * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  - * SUCH DAMAGE.
  - * ====================================================================
  - *
  - * This software consists of voluntary contributions made by many
  - * individuals on behalf of the Apache Software Foundation.  For more
  - * information on the Apache Software Foundation, please see
  - * <http://www.apache.org/>.
  - *
  - */ 
  + * Copyright (c) 1999 Sun Microsystems, Inc. All Rights Reserved.
  + * 
  + * This software is the confidential and proprietary information of Sun
  + * Microsystems, Inc. ("Confidential Information").  You shall not
  + * disclose such Confidential Information and shall use it only in
  + * accordance with the terms of the license agreement you entered into
  + * with Sun.
  + * 
  + * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  + * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  + * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  + * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  + * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  + * THIS SOFTWARE OR ITS DERIVATIVES.
  + * 
  + * CopyrightVersion 1.0
  + */
    
   package javax.servlet.jsp.tagext;
   
  @@ -106,7 +66,7 @@
   	    }
   
   	    if ((isInterface && klass.isInstance(tag)) ||
  -	        klass.equals(tag.getClass()))
  +	        klass.isAssignableFrom(tag.getClass()))
   		return tag;
   	    else
   		from = tag;
  @@ -145,7 +105,7 @@
        *
        * When this method is invoked, the body has not yet been invoked.
        *
  -     * @returns EVAL_BODY if the tag wants to process body, SKIP_BODY if it
  +     * @returns EVAL_BODY_INCLUDE if the tag wants to process body, SKIP_BODY if it
        * does ont want to process it.
        */
    
  @@ -197,7 +157,7 @@
        * Set the id attribute
        */
   
  -    public void setTagId(String id) {
  +    public void setId(String id) {
   	this.id = id;
       }
   
  @@ -207,7 +167,7 @@
        * @return the value of the id attribute, or null
        */
       
  -    public String getTagId() {
  +    public String getId() {
   	return id;
       }
   
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.5.2.1   +5 -5      jakarta-tomcat/src/share/org/apache/jasper/compiler/TagBeginGenerator.java
  
  Index: TagBeginGenerator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/TagBeginGenerator.java,v
  retrieving revision 1.5
  retrieving revision 1.5.2.1
  diff -u -r1.5 -r1.5.2.1
  --- TagBeginGenerator.java	1999/10/21 07:57:22	1.5
  +++ TagBeginGenerator.java	1999/10/22 01:11:19	1.5.2.1
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/TagBeginGenerator.java,v
1.5 1999/10/21 07:57:22 akv Exp $
  - * $Revision: 1.5 $
  - * $Date: 1999/10/21 07:57:22 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/TagBeginGenerator.java,v
1.5.2.1 1999/10/22 01:11:19 mandar Exp $
  + * $Revision: 1.5.2.1 $
  + * $Date: 1999/10/22 01:11:19 $
    *
    * ====================================================================
    * 
  @@ -236,13 +236,13 @@
           if (implementsBodyTag) {
               writer.println("if ("+evalVar+" == Tag.EVAL_BODY_INCLUDE)");
               writer.pushIndent();
  -            writer.println("throw new JspError(\"Since tag handler "+tc.getTagHandlerClass()+
  +            writer.println("throw new JspTagException(\"Since tag handler "+tc.getTagHandlerClass()+
                              " implements BodyTag, it can't return Tag.EVAL_BODY_INCLUDE\");");
               writer.popIndent();
           } else {
               writer.println("if ("+evalVar+" == BodyTag.EVAL_BODY_TAG)");
               writer.pushIndent();
  -            writer.println("throw new JspError(\"Since tag handler "+tc.getTagHandlerClass()+
  +            writer.println("throw new JspTagException(\"Since tag handler "+tc.getTagHandlerClass()+
                              " does not implement BodyTag, it can't return BodyTag.EVAL_BODY_TAG\");");
               writer.popIndent();
           }
  
  
  

Mime
View raw message