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 2002/12/02 02:26:35 UTC
cvs commit: jakarta-taglibs/bsf/examples/web index.html temps.jsp
glenn 2002/12/01 17:26:35
Modified: bsf/examples/web temps.jsp
Added: bsf/examples/web index.html
Log:
Some more updates for BSF
Revision Changes Path
1.3 +0 -35 jakarta-taglibs/bsf/examples/web/temps.jsp
Index: temps.jsp
===================================================================
RCS file: /home/cvs/jakarta-taglibs/bsf/examples/web/temps.jsp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- temps.jsp 1 Dec 2002 18:52:45 -0000 1.2
+++ temps.jsp 2 Dec 2002 01:26:35 -0000 1.3
@@ -49,23 +49,6 @@
</table>
<bsf:expression language="javascript"> new java.util.Date() </bsf:expression>
-<hr>In Perl
-<table BORDER COLS=2 WIDTH="20%" >
-<tr BGCOLOR="#FFFF00">
-<th>Fahrenheit</th>
-<th>Celsius</th>
-</tr>
-<bsf:scriptlet language="perlscript">
- for ($i=60; $i<=100; $i+=10) {
- $out->println ("<tr ALIGN=RIGHT BGCOLOR=\"#CCCCCC\">");
- $out->println ("<td>$i</td>");
- $out->println ("<td>" . int(($i - 32)*5/9) . "</td>");
- $out->println ("</tr>");
- }
-</bsf:scriptlet>
-</table>
-<bsf:expression language="perlscript"> CreateBean("java.util.Date") </bsf:expression>
-
<hr>In JACL
<table BORDER COLS=2 WIDTH="20%" >
<tr BGCOLOR="#FFFF00">
@@ -101,24 +84,6 @@
out.println ("</tr>");
</bsf:scriptlet>
</table>
-
-<hr>In LotusScript
-<table BORDER COLS=2 WIDTH="20%" >
-<tr BGCOLOR="#FFFF00">
-<th>Fahrenheit</th>
-<th>Celsius</th>
-</tr>
-<bsf:scriptlet language="lotusscript">
-for i = 60 to 100 step 10
- out.println "<tr ALIGN=RIGHT BGCOLOR=""#CCCCCC"">"
- out.println "<td>" & i & "</td>"
- out.println "<td>" & format((i - 32)*5/9," 0.00") & "</td>"
- out.println "</tr>"
- next
-</bsf:scriptlet>
-</table>
-
-<bsf:expression language="lotusscript"> CreateBean("java.util.Date") </bsf:expression>
</body>
</html>
1.1 jakarta-taglibs/bsf/examples/web/index.html
Index: index.html
===================================================================
<html>
<head>
<title>Jakarta Project: BSF JSP Tag Library Example</title>
</head>
<body bgcolor="#FFFFFF">
<center>
<h1>
Jakarta BSF Taglib Example</h1></center>
<br>
Press <a href="temps.jsp">here</a> to see the bsf taglib use
different scripting languages to calculate temperatures.
<br>
See the source from the <a href="temps.html">temps.jsp</a> example page.
</body>
</html>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>