<td>Executes the example
</tr>
<tr>
<td width="30">

<td>Look at the source code for the example
</tr>
<tr>
<td width="30">

<td>Return to this screen
</tr>
</table>
</p>
<p>Tip: To see the cookie interactions with your browser, try turning on
the "notify when setting a cookie" option in your browser preferences.
This will let you see when a session is created and give some feedback
when looking at the cookie demo.
</p>
<h2>Table of content
"""
println """
<table BORDER=0 CELLSPACING=5 WIDTH="85%" >
<!-- Begin Groovlet -->
<tr VALIGN=TOP>
<td>Hello World
<td VALIGN=TOP WIDTH="30%">
Execute
<td WIDTH="30%">

Source
</tr>
<!-- End Groovlet -->
<!-- Begin Groovlet -->
<tr VALIGN=TOP>
<td>Zoo
<td VALIGN=TOP WIDTH="30%">
Execute
<td WIDTH="30%">

Source
</tr>
<!-- End Groovlet -->
</table>
<h2>Note
<p>The source code for these examples does not contain all of the
source code that is actually in the example, only the important sections
of code. Code not important to understand the example has been removed
for clarity.
</body>
</html>
"""
Other Groovy examples (source code examples)
Here is a short list of links related to this Groovy index.groovy source code file:
|
Groovy example source code file (index.groovy)
This example Groovy source code file (index.groovy) is included in the DevDaily.com
"Java Source Code
Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.
The Groovy index.groovy source code
println """
<!-- Groovy Groovlet Examples. -->
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Groovy Developers">
<title>Groovy - Groovlet Examples
<link rel="stylesheet" href="codehaus-style.css" type="text/css">
</head>
<body bgcolor="#FFFFFF">
<a href="http://groovy.codehaus.org">
<h1>Groovlet examples showing GroovyServlet in action
<p>
These examples will only work when viewed via an http URL. They will not work
if you are viewing these pages via a <tt>file://... URL. You need to
deploy the <tt>war archive into a servlet container like Tomcat, Jetty or
any other will do as well.
</p>
<p>
To navigate your way through the examples, the following icons will help:
<table border=0>
<tr>
<td width="30"> |