|
Groovy example source code file (index.groovy)
The Groovy index.groovy source codeprintln """ <!-- 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"> |
<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>
"""
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.