jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lar...@apache.org
Subject cvs commit: jakarta-watchdog/src/server/jsp-tests/WEB-INF/classes/jsp/tags/examples TestTag.java
Date Sat, 26 May 2001 03:39:21 GMT
larryi      01/05/25 20:39:21

  Modified:    src/server/jsp-tests/WEB-INF/classes/jsp/tags/examples Tag:
                        tomcat_32 TestTag.java
  Log:
  Update to work with tag pooling.
  
  Change to output TestString in doEndTag().  Modify release() to
  only output TestString if att1="release".
  
  Submitted by: Casey Lucas
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.4.1   +18 -11    jakarta-watchdog/src/server/jsp-tests/WEB-INF/classes/jsp/tags/examples/TestTag.java
  
  Index: TestTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-watchdog/src/server/jsp-tests/WEB-INF/classes/jsp/tags/examples/TestTag.java,v
  retrieving revision 1.1
  retrieving revision 1.1.4.1
  diff -u -r1.1 -r1.1.4.1
  --- TestTag.java	1999/11/09 21:11:12	1.1
  +++ TestTag.java	2001/05/26 03:39:21	1.1.4.1
  @@ -54,6 +54,8 @@
   // Test for doStartTag method in TagSupport class.
   
       public int doStartTag() {
  +       TestString="";
  +
          if ("doStartTag".equalsIgnoreCase (this.getAtt1())) { 
    
   // Test for methods in variableInfo class.
  @@ -126,9 +128,14 @@
       
       public int doEndTag() throws JspException{
       	
  -       if ("doEndTag".equalsIgnoreCase (this.getAtt1())) { 
  -       	TestString +=this.getAtt1(); 
  -		} 
  +        if ("doEndTag".equalsIgnoreCase (this.getAtt1())) { 
  +       	    TestString +=this.getAtt1(); 
  +        } 
  +        try {
  +            if (toBrowser)
  +                bodyOut.println(TestString);
  +            bodyOut.writeOut(bodyOut.getEnclosingWriter());
  +        } catch (IOException ioe) {}
          return EVAL_PAGE;	
       }	
   
  @@ -136,16 +143,16 @@
   // Test for release method in BodyTagSupport class
   
       public void release() {
  -       if ("release".equalsIgnoreCase (this.getAtt1())) { 
  -       	TestString +=this.getAtt1(); } 
  +        if ("release".equalsIgnoreCase (this.getAtt1())) { 
  +       	    TestString +=this.getAtt1();
   
  -    try {
  +            try {
       
  -        if (toBrowser)
  -            bodyOut.println(TestString);
  -     		bodyOut.writeOut(bodyOut.getEnclosingWriter());
  -     } catch (IOException ioe) {}
  -
  +                if (toBrowser)
  +                    bodyOut.println(TestString);
  +                bodyOut.writeOut(bodyOut.getEnclosingWriter());
  +            } catch (IOException ioe) {}
  +        }
       }	
   
   
  
  
  

Mime
View raw message