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/jsp/tagext/TagSupport positiveDoStartTag.jsp positiveGetParent.jsp positiveGetValue.jsp positiveGetValues.jsp positiveRemoveValue.jsp positiveSetPageContext.jsp positiveSetValue.jsp
Date Wed, 04 Oct 2000 00:26:20 GMT
santosh     00/10/03 17:26:20

  Added:       src/server/jsp-tests/jsp/tagext/TagSupport
                        positiveDoStartTag.jsp positiveGetParent.jsp
                        positiveGetValue.jsp positiveGetValues.jsp
                        positiveRemoveValue.jsp positiveSetPageContext.jsp
                        positiveSetValue.jsp
  Log:
  watchdog 4.0
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/TagSupport/positiveDoStartTag.jsp
  
  Index: positiveDoStartTag.jsp
  ===================================================================
  <html>
  <title>positiveDoStartTag</title>
  <body>
  <% 
  	/** 	
  	Name : positiveDoStartTag
  	Description : Pass an attribute to the test tag.
  	              Print this inside the doStartTag() method,
  	              indicating that this is called.
  	Result :   The passed attribute value should be printed.
  	**/  
  %>	 
  
  
  <%@ taglib uri="http://java.apache.org/tomcat/examples-taglib" prefix="eg" %>
  
  <eg:test toBrowser="true" att1="doStartTag">
  Test For 
  </eg:test>
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/TagSupport/positiveGetParent.jsp
  
  Index: positiveGetParent.jsp
  ===================================================================
  <html>
  <title>positiveGetParent</title>
  <body>
  <% 
  	/** 	
  	Name : positiveGetParent
  	Description : Call the "test" tag passing an attribute
  	              "getParent".The "test" tag implementation class
  	              calls the getParent() method and returns the parent
  	              class name.Print the name.
  	Result :   The parent class name should be printed.
  	**/  
  %>	 
  
  
  <%@ taglib uri="http://java.apache.org/tomcat/examples-taglib" prefix="eg" %>
  
  <eg:test toBrowser="true" att1="getParent" att2="getParent">
  getParent method </eg:test>
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/TagSupport/positiveGetValue.jsp
  
  Index: positiveGetValue.jsp
  ===================================================================
  <html>
  <title>positiveGetValue</title>
  <body>
  
  <%
      /*
      
      Name:  positiveGetValue
      Description: Create a TagSupport object and set values using
                    the setValue() method.Call the getValue() method
                    and print the contents.
       Result:     The values which were set should be printed.             
   */
   
   %>   
  
  
  
  <%
  
  	TagSupport ts = new TagSupport();
  	
  	ts.setValue("Color1","red");
  	ts.setValue("Color2","green");
  
  	for(int i=1;i<=2;i++) {
  		out.println("Colors are  " + ts.getValue("Color"+i));
  
  %> 
  <br> <% }
  %>
  
  
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/TagSupport/positiveGetValues.jsp
  
  Index: positiveGetValues.jsp
  ===================================================================
  <html>
  <title>positiveGetValues</title>
  <body>
  <%
      /*
      
      Name:  positiveGetValues
      Description: Create a TagSupport object and set values using
                    the setValue() method.Call the getValues() method
                    which returns an enumeration,and print the contents.
       Result:     The values which were set should be printed.             
   */
   
   %>   
  
  
  <%
  
  	TagSupport ts = new TagSupport();
  	
  	ts.setValue("Color1","red");
  	ts.setValue("Color2","green");
  %>
  <!-- Returns only keys names -->
  
  <%
  
  	java.util.Enumeration e = ts.getValues();
  	while (e.hasMoreElements()) {
          String v = (String)e.nextElement();
         	out.println(v);
      }
  %>
  
  
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/TagSupport/positiveRemoveValue.jsp
  
  Index: positiveRemoveValue.jsp
  ===================================================================
  <html>
  <title>positiveRemoveValue</title>
  <body>
  <% 
  	/** 	
  	Name : positiveRemoveValue
  	Description : Create a TagSupport object and set values
  	              using the setValue() method.Get the values 
  	              set using the getValue() method.Call the removeValue()
  	              method and remove one value.Print the rest.
  	Result :   The values, except the one removed ,should be printed.
  	**/  
  %>
  
  
  <%
  
  	TagSupport ts = new TagSupport();
  	
  	ts.setValue("Color1","red");
  	ts.setValue("Color2","green");
  
  	for(int i=1;i<=2;i++) {
  		out.println("Colors are  " + ts.getValue("Color"+i));
  
  %> 
  <br> <% }
  %>
  
  <br>
  <%
  ts.removeValue("Color1");
  out.println( ts.getValue("Color1"));
  
  %>
  
  
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/TagSupport/positiveSetPageContext.jsp
  
  Index: positiveSetPageContext.jsp
  ===================================================================
  <html>
  <title>positiveSetPageContext</title>
  <body>
  <% 
  	/** 	
  	Name : positiveSetPageContext
  	Description : Page tag is used here.setPageContext()
  	              is used to set the page context.Using this
  	              page context obj we set an attribute.The attribute
  	              is passed to the jsp page.
  	Result :   The attribute should be printed.
  	**/  
  %>	 
  
  
  <%@ taglib uri="http://java.apache.org/tomcat/examples-taglib" prefix="eg" %>
  
  <eg:page toBrowser="true" att1="setPageContext" >
   Test for </eg:page>
  
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/TagSupport/positiveSetValue.jsp
  
  Index: positiveSetValue.jsp
  ===================================================================
  <html>
  <title>positiveSetValue</title>
  <body>
  <%
      /*
      
      Name:  positiveSetValue
      Description: Create a TagSupport object and set values using
                    the setValue() method.Call the getValue() method
                    and print the contents.
       Result:     The values which were set should be printed.             
   */
   
   %>   
  
  
  
  <%
  
  	TagSupport ts = new TagSupport();
  	
  	ts.setValue("Color1","red");
  	ts.setValue("Color2","green");
  
  	for(int i=1;i<=2;i++) {
  		out.println("Colors are  " + ts.getValue("Color"+i));
  
  %> 
  <br> <% }
  %>
  
  </body>
  </html>
  
  

Mime
View raw message