jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gl...@apache.org
Subject cvs commit: jakarta-taglibs/page/examples/web index.html page.jsp
Date Fri, 13 Jul 2001 23:18:42 GMT
glenn       01/07/13 16:18:42

  Modified:    page/examples/web index.html page.jsp
  Log:
  Convert to new build
  
  Revision  Changes    Path
  1.2       +7 -3      jakarta-taglibs/page/examples/web/index.html
  
  Index: index.html
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/page/examples/web/index.html,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- index.html	2000/12/20 13:21:25	1.1
  +++ index.html	2001/07/13 23:18:41	1.2
  @@ -1,12 +1,16 @@
   <html>
  -<body text="#000000" bgcolor="#FFFFFF" link="#0000EE" vlink="#551A8B" alink="#FF0000">
  +<head>
  +   <title>Jakarta Project: PAGE JSP Tag Library Example</title>
  +</head>
  +<body bgcolor="#FFFFFF">
   
   <center>
   <h1>
   Jakarta PAGE Taglib Example</h1></center>
   <br>
  -Press <a href="page.jsp">here</a> to see the page taglib gather information
from the page context.
  +Press <a href="page.jsp">here</a> to see the page taglib gather
  +information from the page context.
   <br>
  -See the source from the <a href="page.txt">page.jsp</a> example page.
  +See the source from the <a href="page.html">page.jsp</a> example page.
   </body>
   </html>
  
  
  
  1.2       +31 -30    jakarta-taglibs/page/examples/web/page.jsp
  
  Index: page.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/page/examples/web/page.jsp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- page.jsp	2000/12/20 13:21:25	1.1
  +++ page.jsp	2001/07/13 23:18:41	1.2
  @@ -1,53 +1,54 @@
  +<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
   <html>
   <head>
      <title>Jakarta PAGE Taglib Example</title>  
   </head>
   <body bgcolor="white">
   
  -<center>
  -
  -<h1>
  -Jakarta PAGE Taglib Example</h1></center> 
  -<br>
  +<center>
  + <h1>Jakarta PAGE Taglib Example</h1>
  +</center> 
  +<br>
  +
   <%@ taglib uri="http://jakarta.apache.org/taglibs/page-1.0" prefix="page" %>
   <p>
   <pre>
   Set an attribute named "myatt"
  -<page:setattribute name="myatt">AAbb</page:setattribute>
  +<page:setAttribute name="myatt">AAbb</page:setAttribute>
   See if myatt attribute exists
  -<page:existsattribute name="myatt">
  +<page:existsAttribute name="myatt">
      myatt=<page:attribute name="myatt"/>
  -</page:existsattribute>
  -<page:existsattribute name="myatt" value="false">
  +</page:existsAttribute>
  +<page:existsAttribute name="myatt" value="false">
      Attribute myatt does not exist.
  -</page:existsattribute>
  -See if myatt equals "aabb"
  -<page:equalsattribute name="myatt" match="aabb">
  -  myatt=<page:attribute name="myatt"/>
  -</page:equalsattribute>
  -<page:equalsattribute name="myatt" match="aabb" value="false">
  -  Attribute myatt does not equal "aabb".
  -</page:equalsattribute>
  -See if myatt equals "aabb", ignoring case
  -<page:equalsattribute name="myatt" match="aabb" ignorecase="true">
  -  myatt=<page:attribute name="myatt"/>
  -</page:equalsattribute>
  -<page:equalsattribute name="myatt" match="aabb" value="false" ignorecase="true">
  -  Attribute myatt does not equal "aabb", ignoring case.
  -</page:equalsattribute>
  +</page:existsAttribute>
  +See if myatt equals "aabb"
  +<page:equalsAttribute name="myatt" match="aabb">
  +  myatt=<page:attribute name="myatt"/>
  +</page:equalsAttribute>
  +<page:equalsAttribute name="myatt" match="aabb" value="false">
  +  Attribute myatt does not equal "aabb".
  +</page:equalsAttribute>
  +See if myatt equals "aabb", ignoring case
  +<page:equalsAttribute name="myatt" match="aabb" ignoreCase="true">
  +  myatt=<page:attribute name="myatt"/>
  +</page:equalsAttribute>
  +<page:equalsAttribute name="myatt" match="aabb" value="false" ignoreCase="true">
  +  Attribute myatt does not equal "aabb", ignoring case.
  +</page:equalsAttribute>
   Now loop through all the attributes
   <page:attributes id="att">
      <jsp:getProperty name="att" property="name"/> = <jsp:getProperty name="att"
property="attribute"/>
   </page:attributes>
   Now remove the attribute myatt
  -<page:removeattribute name="myatt"/>
  +<page:removeAttribute name="myatt"/>
   See if myatt attribute exists
  -<page:existsattribute name="myatt">
  +<page:existsAttribute name="myatt">
      myatt=<page:attribute name="myatt"/>
  -</page:existsattribute>
  -<page:existsattribute name="myatt" value="false">
  +</page:existsAttribute>
  +<page:existsAttribute name="myatt" value="false">
      Attribute myatt does not exist.              
  -</page:existsattribute>
  -
  +</page:existsAttribute>
  +
   </body>
   </html>
  
  
  

Mime
View raw message