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 PersistenceTag.java
Date Sat, 18 Nov 2000 00:49:05 GMT
santosh     00/11/17 16:49:05

  Added:       src/server/jsp-tests/WEB-INF/classes/tags/misc
                        PersistenceTag.java
  Log:
  Tag handler for testing persistence of attributes
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/WEB-INF/classes/tags/misc/PersistenceTag.java
  
  Index: PersistenceTag.java
  ===================================================================
  /**
  This tag serves as a tag with instance variables. It is called from a jsp to test that the
instance variables are persistent i.e if one tag contains another tag of same type the attributes
for the first tag don't get overwritten with the second tag values.
   */
  
  package tags.misc;
  
  import javax.servlet.jsp.*;
  import javax.servlet.jsp.tagext.*;
  import java.io.IOException;
  
  public class PersistenceTag extends TagSupport {
  
  protected String tag_id ;
  
      public void setTagid(String tag_id)
  	{
  	this.tag_id =tag_id;
  	}
      
      public int doStartTag() {
         try
          {
           pageContext.getOut().println("doStartTag from tag " + tag_id);
          }catch(IOException ioe)
           {  }
  
  	return EVAL_BODY_INCLUDE ;
      }
  
      public int doEndTag() {
         try
          {
           pageContext.getOut().println("doEndTag from tag " + tag_id);
          }catch(IOException ioe)
           {  }
  
  	return EVAL_PAGE ;
      }
  
  
  }
  
  
  

Mime
View raw message