source: nutchez-0.1/tomcat/webapps/examples/jsp/index.html @ 165

Last change on this file since 165 was 66, checked in by waue, 16 years ago

NutchEz - an easy way to nutch

File size: 15.9 KB
RevLine 
[66]1<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
2<html>
3<!--
4 Licensed to the Apache Software Foundation (ASF) under one or more
5  contributor license agreements.  See the NOTICE file distributed with
6  this work for additional information regarding copyright ownership.
7  The ASF licenses this file to You under the Apache License, Version 2.0
8  (the "License"); you may not use this file except in compliance with
9  the License.  You may obtain a copy of the License at
10
11      http://www.apache.org/licenses/LICENSE-2.0
12
13  Unless required by applicable law or agreed to in writing, software
14  distributed under the License is distributed on an "AS IS" BASIS,
15  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  See the License for the specific language governing permissions and
17  limitations under the License.
18-->
19<head>
20   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
21   <meta name="GENERATOR" content="Mozilla/4.61 [en] (WinNT; I) [Netscape]">
22   <meta name="Author" content="Anil K. Vijendran">
23   <title>JSP Examples</title>
24</head>
25<body bgcolor="#FFFFFF">
26<b><font face="Arial, Helvetica, sans-serif"><font size=+2>JSP
27Samples</font></font></b>
28<p>This is a collection of samples demonstrating the usage of different
29parts of the Java Server Pages (JSP) specification.  Both JSP 2.0 and
30JSP 1.2 examples are presented below.
31<p>These examples will only work when these pages are being served by a
32servlet engine; of course, we recommend
33<a href="http://tomcat.apache.org/">Tomcat</a>.
34They will not work if you are viewing these pages via a
35"file://..." URL.
36<p>To navigate your way through the examples, the following icons will
37help:
38<br>&nbsp;
39<table BORDER=0 CELLSPACING=5 WIDTH="85%" >
40<tr VALIGN=TOP>
41<td WIDTH="30"><img SRC="images/execute.gif" ></td>
42
43<td>Execute the example</td>
44</tr>
45
46<tr VALIGN=TOP>
47<td WIDTH="30"><img SRC="images/code.gif" height=24 width=24></td>
48
49<td>Look at the source code for the example</td>
50</tr>
51
52<!--<tr VALIGN=TOP>
53<td WIDTH="30"><img SRC="images/read.gif" height=24 width=24></td>
54
55<td>Read more about this feature</td>
56-->
57
58</tr>
59<tr VALIGN=TOP>
60<td WIDTH="30"><img SRC="images/return.gif" height=24 width=24></td>
61
62<td>Return to this screen</td>
63</tr>
64</table>
65
66<p>Tip: For session scoped beans to work, the cookies must be enabled.
67This can be done using browser options.
68<br>&nbsp;
69<br>
70<b><u><font size="+1">JSP 2.0 Examples</font></u></b><br>
71
72<table BORDER=0 CELLSPACING=5 WIDTH="85%" >
73<tr valign=TOP>
74<td><b>Expression Language</b></td>
75</tr>
76
77<tr valign=TOP>
78<td>Basic Arithmetic</td>
79<td valign=TOP width="30%"><a href="jsp2/el/basic-arithmetic.jsp"><img src="images/execute.gif" hspace=4 border=0  align=top></a><a href="jsp2/el/basic-arithmetic.jsp">Execute</a></td>
80
81<td width="30%"><a href="jsp2/el/basic-arithmetic.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="jsp2/el/basic-arithmetic.html">Source</a></td>
82</tr>
83
84<tr valign=TOP>
85<td>Basic Comparisons</td>
86<td valign=TOP width="30%"><a href="jsp2/el/basic-comparisons.jsp"><img src="images/execute.gif" hspace=4 border=0  align=top></a><a href="jsp2/el/basic-comparisons.jsp">Execute</a></td>
87
88<td width="30%"><a href="jsp2/el/basic-comparisons.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="jsp2/el/basic-comparisons.html">Source</a></td>
89</tr>
90
91<tr valign=TOP>
92<td>Implicit Objects</td>
93<td valign=TOP width="30%"><a href="jsp2/el/implicit-objects.jsp?foo=bar"><img src="images/execute.gif" hspace=4 border=0  align=top></a><a href="jsp2/el/implicit-objects.jsp?foo=bar">Execute</a></td>
94
95<td width="30%"><a href="jsp2/el/implicit-objects.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="jsp2/el/implicit-objects.html">Source</a></td>
96</tr>
97<tr valign=TOP>
98
99<td>Functions</td>
100<td valign=TOP width="30%"><a href="jsp2/el/functions.jsp?foo=JSP+2.0"><img src="images/execute.gif" hspace=4 border=0  align=top></a><a href="jsp2/el/functions.jsp?foo=JSP+2.0">Execute</a></td>
101
102<td width="30%"><a href="jsp2/el/functions.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="jsp2/el/functions.html">Source</a></td>
103</tr>
104
105<tr valign=TOP>
106<td><br><b>SimpleTag Handlers and JSP Fragments</b></td>
107</tr>
108
109<tr valign=TOP>
110<td>Hello World Tag</td>
111<td valign=TOP width="30%"><a href="jsp2/simpletag/hello.jsp"><img src="images/execute.gif" hspace=4 border=0  align=top></a><a href="jsp2/simpletag/hello.jsp">Execute</a></td>
112
113<td width="30%"><a href="jsp2/simpletag/hello.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="jsp2/simpletag/hello.html">Source</a></td>
114</tr>
115
116<tr valign=TOP>
117<td>Repeat Tag</td>
118<td valign=TOP width="30%"><a href="jsp2/simpletag/repeat.jsp"><img src="images/execute.gif" hspace=4 border=0  align=top></a><a href="jsp2/simpletag/repeat.jsp">Execute</a></td>
119
120<td width="30%"><a href="jsp2/simpletag/repeat.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="jsp2/simpletag/repeat.html">Source</a></td>
121</tr>
122
123<tr valign=TOP>
124<td>Book Example</td>
125<td valign=TOP width="30%"><a href="jsp2/simpletag/book.jsp"><img src="images/execute.gif" hspace=4 border=0  align=top></a><a href="jsp2/simpletag/book.jsp">Execute</a></td>
126
127<td width="30%"><a href="jsp2/simpletag/book.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="jsp2/simpletag/book.html">Source</a></td>
128</tr>
129
130<tr valign=TOP>
131<td><br><b>Tag Files</b></td>
132</tr>
133
134<tr valign=TOP>
135<td>Hello World Tag File</td>
136<td valign=TOP width="30%"><a href="jsp2/tagfiles/hello.jsp"><img src="images/execute.gif" hspace=4 border=0  align=top></a><a href="jsp2/tagfiles/hello.jsp">Execute</a></td>
137
138<td width="30%"><a href="jsp2/tagfiles/hello.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="jsp2/tagfiles/hello.html">Source</a></td>
139</tr>
140
141<tr valign=TOP>
142<td>Panel Tag File</td>
143<td valign=TOP width="30%"><a href="jsp2/tagfiles/panel.jsp"><img src="images/execute.gif" hspace=4 border=0  align=top></a><a href="jsp2/tagfiles/panel.jsp">Execute</a></td>
144
145<td width="30%"><a href="jsp2/tagfiles/panel.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="jsp2/tagfiles/panel.html">Source</a></td>
146</tr>
147
148<tr valign=TOP>
149<td>Display Products Example</td>
150<td valign=TOP width="30%"><a href="jsp2/tagfiles/products.jsp"><img src="images/execute.gif" hspace=4 border=0  align=top></a><a href="jsp2/tagfiles/products.jsp">Execute</a></td>
151
152<td width="30%"><a href="jsp2/tagfiles/products.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="jsp2/tagfiles/products.html">Source</a></td>
153</tr>
154
155<tr valign=TOP>
156<td><br><b>New JSP XML Syntax (.jspx)</b></td>
157</tr>
158
159<tr valign=TOP>
160<td>XHTML Basic Example</td>
161<td valign=TOP width="30%"><a href="jsp2/jspx/basic.jspx"><img src="images/execute.gif" hspace=4 border=0  align=top></a><a href="jsp2/jspx/basic.jspx">Execute</a></td>
162
163<td width="30%"><a href="jsp2/jspx/basic.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="jsp2/jspx/basic.html">Source</a></td>
164</tr>
165
166<tr valign=TOP>
167<td>SVG (Scalable Vector Graphics)</td>
168<td valign=TOP width="30%"><a href="jsp2/jspx/svgexample.html"><img src="images/execute.gif" hspace=4 border=0  align=top></a><a href="jsp2/jspx/svgexample.html">Execute</a></td>
169
170<td width="30%"><a href="jsp2/jspx/textRotate.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="jsp2/jspx/textRotate.html">Source</a></td>
171</tr>
172
173<tr valign=TOP>
174<td><br><b>Other JSP 2.0 Features</b></td>
175</tr>
176
177<tr valign=TOP>
178<td>&lt;jsp:attribute&gt; and &lt;jsp:body&gt;</td>
179<td valign=TOP width="30%"><a href="jsp2/jspattribute/jspattribute.jsp"><img src="images/execute.gif" hspace=4 border=0  align=top></a><a href="jsp2/jspattribute/jspattribute.jsp">Execute</a></td>
180
181<td width="30%"><a href="jsp2/jspattribute/jspattribute.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="jsp2/jspattribute/jspattribute.html">Source</a></td>
182</tr>
183
184<tr valign=TOP>
185<td>Shuffle Example</td>
186<td valign=TOP width="30%"><a href="jsp2/jspattribute/shuffle.jsp"><img src="images/execute.gif" hspace=4 border=0  align=top></a><a href="jsp2/jspattribute/shuffle.jsp">Execute</a></td>
187
188<td width="30%"><a href="jsp2/jspattribute/shuffle.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="jsp2/jspattribute/shuffle.html">Source</a></td>
189</tr>
190
191<tr valign=TOP>
192<td>Attributes With Dynamic Names</td>
193<td valign=TOP width="30%"><a href="jsp2/misc/dynamicattrs.jsp"><img src="images/execute.gif" hspace=4 border=0  align=top></a><a href="jsp2/misc/dynamicattrs.jsp">Execute</a></td>
194
195<td width="30%"><a href="jsp2/misc/dynamicattrs.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="jsp2/misc/dynamicattrs.html">Source</a></td>
196</tr>
197
198<tr valign=TOP>
199<td>JSP Configuration</td>
200<td valign=TOP width="30%"><a href="jsp2/misc/config.jsp"><img src="images/execute.gif" hspace=4 border=0  align=top></a><a href="jsp2/misc/config.jsp">Execute</a></td>
201
202<td width="30%"><a href="jsp2/misc/config.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="jsp2/misc/config.html">Source</a></td>
203</tr>
204
205</table>
206
207<br>
208<b><u><font size="+1">JSP 1.2 Examples</font></u></b><br>
209<table BORDER=0 CELLSPACING=5 WIDTH="85%" >
210<tr VALIGN=TOP>
211<td>Numberguess&nbsp;</td>
212
213<td VALIGN=TOP WIDTH="30%"><a href="num/numguess.jsp"><img SRC="images/execute.gif" HSPACE=4 BORDER=0  align=TOP></a><a href="num/numguess.jsp">Execute</a></td>
214
215<td WIDTH="30%"><a href="num/numguess.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="num/numguess.html">Source</a></td>
216</tr>
217
218<tr VALIGN=TOP>
219<td>Date&nbsp;</td>
220
221<td VALIGN=TOP WIDTH="30%"><a href="dates/date.jsp"><img SRC="images/execute.gif" HSPACE=4 BORDER=0  align=TOP></a><a href="dates/date.jsp">Execute</a></td>
222
223<td WIDTH="30%"><a href="dates/date.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="dates/date.html">Source</a></td>
224</tr>
225
226<tr VALIGN=TOP>
227<td>Snoop</td>
228
229<td WIDTH="30%"><a href="snp/snoop.jsp"><img SRC="images/execute.gif" HSPACE=4 BORDER=0  align=TOP></a><a href="snp/snoop.jsp">Execute</a></td>
230
231<td WIDTH="30%"><a href="snp/snoop.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="snp/snoop.html">Source</a></td>
232</tr>
233
234<tr VALIGN=TOP>
235<td>ErrorPage&nbsp;</td>
236
237<td WIDTH="30%"><a href="error/error.html"><img SRC="images/execute.gif" HSPACE=4 BORDER=0  align=TOP></a><a href="error/error.html">Execute</a></td>
238
239<td WIDTH="30%"><a href="error/er.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="error/er.html">Source</a></td>
240</tr>
241
242<tr VALIGN=TOP>
243<td>Carts&nbsp;</td>
244
245<td VALIGN=TOP WIDTH="30%"><a href="sessions/carts.html"><img SRC="images/execute.gif" HSPACE=4 BORDER=0  align=TOP></a><a href="sessions/carts.html">Execute</a></td>
246
247<td WIDTH="30%"><a href="sessions/crt.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="sessions/crt.html">Source</a></td>
248</tr>
249
250<tr VALIGN=TOP>
251<td>Checkbox&nbsp;</td>
252
253<td VALIGN=TOP WIDTH="30%"><a href="checkbox/check.html"><img SRC="images/execute.gif" HSPACE=4 BORDER=0  align=TOP></a><a href="checkbox/check.html">Execute</a></td>
254
255<td WIDTH="30%"><a href="checkbox/cresult.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="checkbox/cresult.html">Source</a></td>
256</tr>
257
258<tr VALIGN=TOP>
259<td>Color&nbsp;</td>
260
261<td VALIGN=TOP WIDTH="30%"><a href="colors/colors.html"><img SRC="images/execute.gif" HSPACE=4 BORDER=0  align=TOP></a><a href="colors/colors.html">Execute</a></td>
262
263<td WIDTH="30%"><a href="colors/clr.html.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="colors/clr.html">Source</a></td>
264</tr>
265
266<tr VALIGN=TOP>
267<td>Calendar&nbsp;</td>
268
269<td WIDTH="30%"><a href="cal/login.html"><img SRC="images/execute.gif" HSPACE=4 BORDER=0  align=TOP></a><a href="cal/login.html">Execute</a></td>
270
271<td WIDTH="30%"><a href="cal/calendar.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="cal/calendar.html">Source</a></td>
272</tr>
273
274<tr VALIGN=TOP>
275<td>Include&nbsp;</td>
276
277<td VALIGN=TOP WIDTH="30%"><a href="/include/include.jsp"><img SRC="images/execute.gif" HSPACE=4 BORDER=0  align=TOP></a><a href="include/include.jsp">Execute</a></td>
278
279<td WIDTH="30%"><a href="include/inc.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="include/inc.html">Source</a></td>
280</tr>
281
282<tr VALIGN=TOP>
283<td>Forward&nbsp;</td>
284
285<td VALIGN=TOP WIDTH="30%"><a href="forward/forward.jsp"><img SRC="images/execute.gif" HSPACE=4 BORDER=0  align=TOP></a><a href="forward/forward.jsp">Execute</a></td>
286
287<td WIDTH="30%"><a href="forward/fwd.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="forward/fwd.html">Source</a></td>
288</tr>
289
290<tr VALIGN=TOP>
291<td>Plugin&nbsp;</td>
292
293<td VALIGN=TOP WIDTH="30%"><a href="plugin/plugin.jsp"><img SRC="images/execute.gif" HSPACE=4 BORDER=0  align=TOP></a><a href="plugin/plugin.jsp">Execute</a></td>
294
295<td WIDTH="30%"><a href="plugin/plugin.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="plugin/plugin.html">Source</a></td>
296</tr>
297
298<tr VALIGN=TOP>
299<td>JSP-Servlet-JSP&nbsp;</td>
300
301<td VALIGN=TOP WIDTH="30%"><a href="jsptoserv/jsptoservlet.jsp"><img SRC="images/execute.gif" HSPACE=4 BORDER=0  align=TOP></a><a href="jsptoserv/jsptoservlet.jsp">Execute</a></td>
302
303<td WIDTH="30%"><a href="jsptoserv/jts.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="jsptoserv/jts.html">Source</a></td>
304</tr>
305
306<tr VALIGN=TOP>
307<td>Custom tag example</td>
308
309<td VALIGN=TOP WIDTH="30%"><a href="simpletag/foo.jsp"><img SRC="images/execute.gif" HSPACE=4 BORDER=0  align=TOP></a><a href="simpletag/foo.jsp">Execute</a></td>
310
311<td WIDTH="30%"><a href="simpletag/foo.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="simpletag/foo.html">Source</a></td>
312</tr>
313
314<tr valign=TOP>
315<td>XML syntax example</td>
316<td valign=TOP width="30%"><a href="xml/xml.jsp"><img src="images/execute.gif" hspace=4 border=0  align=top></a><a href="xml/xml.jsp">Execute</a></td>
317
318<td width="30%"><a href="xml/xml.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a><a href="xml/xml.html">Source</a></td>
319</tr>
320
321</table>
322
323<br/>
324<b><u><font size="+1">Tag Plugins</font></u></b><br>
325<table BORDER=0 CELLSPACING=5 WIDTH="85%" >
326
327<tr VALIGN=TOP>
328  <td>If&nbsp;</td>
329  <td VALIGN=TOP WIDTH="30%">
330    <a href="tagplugin/if.jsp"><img SRC="images/execute.gif" HSPACE=4 BORDER=0 
331align=TOP></a>
332    <a href="tagplugin/if.jsp">Execute</a>
333  </td>
334  <td WIDTH="30%">
335    <a href="tagplugin/if.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 hei
336ght=24 width=24 align=TOP></a>
337    <a href="tagplugin/if.html">Source</a>
338  </td>
339</tr>
340
341<tr VALIGN=TOP>
342  <td>ForEach&nbsp;</td>
343  <td VALIGN=TOP WIDTH="30%">
344    <a href="tagplugin/foreach.jsp"><img SRC="images/execute.gif" HSPACE=4 BORDER=0 
345align=TOP></a>
346    <a href="tagplugin/foreach.jsp">Execute</a>
347  </td>
348  <td WIDTH="30%">
349    <a href="tagplugin/foreach.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 hei
350ght=24 width=24 align=TOP></a>
351    <a href="tagplugin/foreach.html">Source</a>
352  </td>
353</tr>
354
355<tr VALIGN=TOP>
356  <td>Choose&nbsp;</td>
357  <td VALIGN=TOP WIDTH="30%">
358    <a href="tagplugin/choose.jsp"><img SRC="images/execute.gif" HSPACE=4 BORDER=0  align=TOP></a>
359    <a href="tagplugin/choose.jsp">Execute</a>
360  </td>
361  <td WIDTH="30%">
362    <a href="tagplugin/choose.html"><img SRC="images/code.gif" HSPACE=4 BORDER=0 height=24 width=24 align=TOP></a>
363    <a href="tagplugin/choose.html">Source</a>
364  </td>
365</tr>
366
367</table>
368
369</body>
370</html>
Note: See TracBrowser for help on using the repository browser.