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/TagData positiveTagGetAttribute.jsp positiveTagGetAttributeString.jsp positiveTagSetAttribute.jsp
Date Wed, 04 Oct 2000 00:27:39 GMT
santosh     00/10/03 17:27:39

  Added:       src/server/jsp-tests/jsp/tagext/TagData
                        positiveTagGetAttribute.jsp
                        positiveTagGetAttributeString.jsp
                        positiveTagSetAttribute.jsp
  Log:
  watchdog 4.0
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/TagData/positiveTagGetAttribute.jsp
  
  Index: positiveTagGetAttribute.jsp
  ===================================================================
  <html>
  <title>positiveTagGetAttribute</title>
  <body>
  <% 
  	/** 	
  	Name : positiveTagGetAttribute
  	Description : Create a TagData object by passing a hashtable.
  	              Print the contents of the hashtable using the 
  	              getAttribute() method of TagData.
  	Result :    The contents should be printed.
  	**/  
  %>	 
  
  <%
  	java.util.Hashtable ht = new java.util.Hashtable();
  	ht.put("Color1","red");
  	ht.put("Color2","green");
  	ht.put("Color3","yellow");
  	ht.put("Color4","orange");
  
  	TagData td = new TagData(ht);
  
  	for(int i=1;i<=4;i++) {
  		out.println("Colors are  " + td.getAttribute("Color"+i));
  
  %> 
  <br> <% }
  %>
  
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/TagData/positiveTagGetAttributeString.jsp
  
  Index: positiveTagGetAttributeString.jsp
  ===================================================================
  <html>
  <title>positiveTagGetAttributeString</title>
  <body>
  <% 
  	/** 	
  	Name : positiveTagGetAttributeString
  	Description : Create a TagData object by passing a hashtable
  	              Using setAttribute() method set the attributes.
  	              Check using the getAttributeString() .
  	Result :     Should print the contents that are set.
  	**/  
  %>	
  <%
  
  	java.util.Hashtable ht = new java.util.Hashtable();
  	TagData td = new TagData(ht);
  	
  	td.setAttribute("Color1","red");
  	td.setAttribute("Color2","green");
  	td.setAttribute("Color3","yellow");
  	td.setAttribute("Color4","orange");
  
  	for(int i=1;i<=4;i++) {
  		out.println("Colors are  " + td.getAttributeString("Color"+i));
  
  %> 
  <br> <% }
  %>
  
  
  </body>
  </html>
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/tagext/TagData/positiveTagSetAttribute.jsp
  
  Index: positiveTagSetAttribute.jsp
  ===================================================================
  <html>
  <title>positiveTagSetAttribute</title>
  <body>
  <% 
  	/** 	
  	Name : positiveTagSetAttribute
  	Description : Create a TagData object by passing a hashtable
  	              created using the setAttribute() method of
  	              TagData.Call the getAttribute() method and print 
  	              the contents.
  	Result :      The contents set should be printed.
  	**/  
  %>	
  <%
  
  	java.util.Hashtable ht = new java.util.Hashtable();
  	TagData td = new TagData(ht);
  	
  	td.setAttribute("Color1","red");
  	td.setAttribute("Color2","green");
  	td.setAttribute("Color3","yellow");
  	td.setAttribute("Color4","orange");
  
  	for(int i=1;i<=4;i++) {
  		out.println("Colors are  " + td.getAttribute("Color"+i));
  
  %> 
  <br> <% }
  %>
  </body>
  </html>
  
  

Mime
View raw message