jakarta-watchdog-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sant...@locus.apache.org
Subject cvs commit: jakarta-watchdog-4.0/src/server/jsp-tests/WEB-INF/classes/tags/misc ReqTimeAttributesTag.java
Date Sat, 18 Nov 2000 00:48:41 GMT
santosh     00/11/17 16:48:41

  Added:       src/server/jsp-tests/WEB-INF/classes/tags/misc
                        ReqTimeAttributesTag.java
  Log:
  Tag to print value of request time attributes.
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/WEB-INF/classes/tags/misc/ReqTimeAttributesTag.java
  
  Index: ReqTimeAttributesTag.java
  ===================================================================
  /**
  This tag is used to tests the order of evaluation in tag attributes. The attribtes are request
time expressions . Section 2.13.1 of jsp 1.2 PF1
   */
  
  package tags.misc;
  
  import javax.servlet.jsp.*;
  import javax.servlet.jsp.tagext.*;
  import java.io.IOException;
  
  public class ReqTimeAttributesTag extends TagSupport {
  
  protected String attr1="default" ;
  protected String attr2="default";
  protected String attr3="default";
  
      public void setAttr1(String attr)
  	{
  	attr1=attr;
  	}
      public void setAttr2(String attr)
  	{
  	attr2=attr;
  	}
      
      public void setAttr3(String attr)
  	{
  	attr3=attr;
  	}
  
  
      public int doStartTag() {
         try
          {
           pageContext.getOut().println("Attribute1: " + attr1);
           pageContext.getOut().println("Attribute2: " + attr2);
           pageContext.getOut().println("Attribute3: " + attr3);
          }catch(IOException ioe)
           {  }
  
  	return EVAL_BODY_INCLUDE ;
      }
  
      public int doEndTag() {
  	return EVAL_PAGE ;
      }
  
  
  }
  
  
  

Mime
View raw message