You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by gl...@apache.org on 2001/07/14 16:19:02 UTC
cvs commit: jakarta-taglibs/application/examples/web index.html application.jsp
glenn 01/07/14 07:19:02
Modified: application/examples/web index.html application.jsp
Log:
Convert to new build, implment tag guidelines
Revision Changes Path
1.2 +10 -5 jakarta-taglibs/application/examples/web/index.html
Index: index.html
===================================================================
RCS file: /home/cvs/jakarta-taglibs/application/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:18:42 1.1
+++ index.html 2001/07/14 14:19:01 1.2
@@ -1,12 +1,17 @@
<html>
-<body text="#000000" bgcolor="#FFFFFF" link="#0000EE" vlink="#551A8B" alink="#FF0000">
+<head>
+ <title>Jakarta Project: APPLICATION JSP Tag Library Example</title>
+</head>
+<body bgcolor="#FFFFFF">
<center>
-<h1>
-Jakarta APPLICATION Taglib Example</h1></center>
+ <h1>Jakarta APPLICATION Taglib Example</h1>
+</center>
<br>
-Press <a href="application.jsp">here</a> to see the application taglib gather information from the servlet container.
+Press <a href="application.jsp">here</a> to see the application taglib
+gather information from the servlet container.
<br>
-See the source from the <a href="application.txt">application.jsp</a> example page.
+See the source from the <a href="application.html">application.jsp</a>
+example page.
</body>
</html>
1.2 +36 -35 jakarta-taglibs/application/examples/web/application.jsp
Index: application.jsp
===================================================================
RCS file: /home/cvs/jakarta-taglibs/application/examples/web/application.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- application.jsp 2000/12/20 13:18:42 1.1
+++ application.jsp 2001/07/14 14:19:01 1.2
@@ -1,3 +1,4 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>Jakarta APPLICATION Taglib Example</title>
@@ -12,60 +13,60 @@
<%@ taglib uri="http://jakarta.apache.org/taglibs/application-1.0" prefix="app" %>
<p>
<pre>
-See if init parameter named "foo" exists
-<app:existsinitparameter name="foo">
- foo=<app:initparameter name="foo"/>
-</app:existsinitparameter>
-<app:existsinitparameter name="foo" value="false">
+See if initialization parameter named "foo" exists
+<app:existsInitParameter name="foo">
+ foo=<app:initParameter name="foo"/>
+</app:existsInitParameter>
+<app:existsInitParameter name="foo" value="false">
Init parameter foo does not exist.
-</app:existsinitparameter>
-See if init parameter "foo" equals "bar"
-<app:equalsinitparameter name="foo" match="bar">
- foo=<app:initparameter name="foo"/>
-</app:equalsinitparameter>
-<app:equalsinitparameter name="foo" match="bar" value="false">
+</app:existsInitParameter>
+See if initialization parameter "foo" equals "bar"
+<app:equalsInitParameter name="foo" match="bar">
+ foo=<app:initParameter name="foo"/>
+</app:equalsInitParameter>
+<app:equalsInitParameter name="foo" match="bar" value="false">
Init parameter foo does does not equal "bar".
-</app:equalsinitparameter>
-Now loop through all init parameters
-<app:initparameters id="inits">
- <jsp:getProperty name="inits" property="name"/> = <jsp:getProperty name="inits" property="parameter"/>
-</app:initparameters>
+</app:equalsInitParameter>
+Now loop through all initialization parameters
+<app:initParameters id="inits">
+ <jsp:getProperty name="inits" property="name"/> = <jsp:getProperty name="inits" property="value"/>
+</app:initParameters>
Set an attribute named "myatt"
-<app:setattribute name="myatt">AAbb</app:setattribute>
+<app:setAttribute name="myatt">AAbb</app:setAttribute>
See if myatt attribute exists
-<app:existsattribute name="myatt">
+<app:existsAttribute name="myatt">
myatt=<app:attribute name="myatt"/>
-</app:existsattribute>
-<app:existsattribute name="myatt" value="false">
+</app:existsAttribute>
+<app:existsAttribute name="myatt" value="false">
Attribute myatt does not exist.
-</app:existsattribute>
+</app:existsAttribute>
See if myatt equals "aabb"
-<app:equalsattribute name="myatt" match="aabb">
+<app:equalsAttribute name="myatt" match="aabb">
myatt=<app:attribute name="myatt"/>
-</app:equalsattribute>
-<app:equalsattribute name="myatt" match="aabb" value="false">
+</app:equalsAttribute>
+<app:equalsAttribute name="myatt" match="aabb" value="false">
Attribute myatt does not equal "aabb".
-</app:equalsattribute>
+</app:equalsAttribute>
See if myatt equals "aabb", ignoring case
-<app:equalsattribute name="myatt" match="aabb" ignorecase="true">
+<app:equalsAttribute name="myatt" match="aabb" ignoreCase="true">
myatt=<app:attribute name="myatt"/>
-</app:equalsattribute>
-<app:equalsattribute name="myatt" match="aabb" value="false" ignorecase="true">
+</app:equalsAttribute>
+<app:equalsAttribute name="myatt" match="aabb" value="false" ignoreCase="true">
Attribute myatt does not equal "aabb", ignoring case.
-</app:equalsattribute>
+</app:equalsAttribute>
Now loop through all the attributes
<app:attributes id="att">
- <jsp:getProperty name="att" property="name"/> = <jsp:getProperty name="att" property="attribute"/>
+ <jsp:getProperty name="att" property="name"/> = <jsp:getProperty name="att" property="value"/>
</app:attributes>
Now remove the attribute myatt
-<app:removeattribute name="myatt"/>
+<app:removeAttribute name="myatt"/>
See if myatt attribute exists
-<app:existsattribute name="myatt">
+<app:existsAttribute name="myatt">
myatt=<app:attribute name="myatt"/>
-</app:existsattribute>
-<app:existsattribute name="myatt" value="false">
+</app:existsAttribute>
+<app:existsAttribute name="myatt" value="false">
Attribute myatt does not exist.
-</app:existsattribute>
+</app:existsAttribute>
</body>
</html>