[0001]
[0002]
[0003]
[0004]
[0005]
[0006]
[0007]
[0008]
[0009]
[0010]
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
[0046]
[0047]
[0048]
[0049]
[0050]
[0051]
[0052]
[0053]
[0054]
[0055]
[0056]
[0057]
[0058]
[0059]
[0060]
[0061]
[0062]
[0063]
[0064]
[0065]
[0066]
[0067]
[0068]
[0069]
[0070]
[0071]
[0072]
[0073]
[0074]
[0075]
[0076]
[0077]
[0078]
[0079]
[0080]
[0081]
[0082]
[0083]
[0084]
[0085]
[0086]
[0087]
[0088]
[0089]
[0090]
[0091]
[0092]
[0093]
[0094]
[0095]
[0096]
[0097]
[0098]
[0099]
[0100]
[0101]
[0102]
[0103]
[0104]
[0105]
[0106]
[0107]
[0108]
[0109]
[0110]
[0111]
[0112]
[0113]
[0114]
[0115]
[0116]
[0117]
[0118]
[0119]
[0120]
[0121]
[0122]
[0123]
[0124]
[0125]
[0126]
[0127]
[0128]
[0129]
[0130]
[0131]
<title>Scripting with Java README</title>
<style>
@media screen { a[target=_blank]::after { font-size:80%; content:"\2924"; } }
</style>
<div style="max-width:60em;">

<p> The WASD Java environment was <b>first implemented in December 1997</b> and
there has been no further development. Developed using the first-release JDK1.1
beta kit for OpenVMS Alpha V7.1.  Verified working with the final release JDK
1.1.6 in September 1998, still working with the JDK 1.1.8-3 update in June
2000, then in March 2002 verified against JDK 1.3.1. <b>Confirmed
working for Java 5 and Java 6 at December 2014</b>. That it continues to work
nearly twenty years after coding is a testament (to something, not sure exactly
what :-)

<div style="float:left;margin:1em;">
<img src="JavaLogo.gif" alt="Java Logo">
</div>

<p> This directory provides some demonstration Java scripts.  These are here
only to provide examples on approaching scripting using this environment ...
and of course to provide some skeletal code for use in real Java scripts.

<p> <span style="font-size:115%;color:#d80454;">Of course the demonstrations
will only work if <b>Java</b> is installed on the server system!</span>
&nbsp;&nbsp;...&nbsp;<a target="_blank" href="/cgi-bin/java.com">Check Now</a>

<p> The <b>class that makes CGI support relatively easy</b> is
<nobr><a target="_blank" href="CGIplus.java">CGIplus.java</a>
(<a href="CGIplus.html">javadoc</a>).</nobr>

<p> The <b>wrapper procedure <a target="_blank" href="java.com">JAVA.COM</a></b> ensures the required runtime environment is
established.

<p> Note that due to the way classes are specified by the WASD server Java
<b>class names invoked as main()s must be all lower case</b>.

<p> For setup requirements check the 
<a target="_blank" href="/ht_root/doc/scripting/scripting_0900.html">Other Environments</a>
chapter in the
<a target="_blank" href="/ht_root/doc/scripting/">Scripting</a>
documentation.

<p>
<style>td,th{vertical-align:top;}</style>
<table cellpadding="5" cellspacing="0" border="1"
style="border-collapse:collapse;border:1px solid black;">

<tr><th colspan="4">Directory Contents</th></tr>

<tr><th>Standard CGI</th><th>CGIplus</th>
<th>Source Code</th><th>Comment</th></tr>

<tr>
<td></td>
<td></td>
<td>
<a href="CGIplus.java">CGIplus.java</a>
<br><a href="CGIplus.html">javadoc</a>
</td>
<td>A generic class that allows Java scripts to be used in WASD's environment.
The demonstration scripts all use this class.</td>
</tr>

<tr>
<td>
[<a href="/cgiplus-bin/dumpCGI.class">demo&nbsp;1</a>]
<br>[<a href="/cgiplus-bin/dumpCGI.class?with+some+key+works">demo&nbsp;2</a>]
<br>[<a href="/cgiplus-bin/dumpCGI.class?one=some&two=form&three=fields">demo&nbsp;3</a>]
</td>
<td></td>
<td><a href="dumpCGI.java">dumpCGI.java</a></td>
<td>Simple CGI script to dump the CGI name and value pairs read from the
CGIplus data stream.</td>
</tr>

<tr>
<td>[<a href="/cgiplus-bin/hi1CGI.class">demo</a>]</td>
<td>[<a href="/cgiplus-bin/hi1CGIplus.class">demo</a>]</td>
<td><a href="hi1CGI.java">hi1CGI.java</a>
<br><a href="hi1CGIplus.java">hi1CGIplus.java</a></td>
<td>Simple CGI and CGIplus scripts.</td>
</tr>

<tr>
<td>[<a href="/cgiplus-bin/hi2CGI.class">demo</a>]</td>
<td>[<a href="/cgiplus-bin/hi2CGIplus.class">demo</a>]</td>
<td>
<a href="hi2CGI.java">hi2CGI.java</a>
<br><a href="hi2CGIplus.java">hi2CGIplus.java</a>
</td>
<td>Simple CGI and CGI plus scripts providing HTML.</td>
</tr>

<tr>
<td>
[<a href="/cgiplus-bin/postCGI.class">GET&nbsp;demo</a>]
<br>
<font size="2">
<form action="/cgiplus-bin/postCGI.class" method="POST">
<input type="hidden" name="hidden1" value="Some hidden form data!">
<input type="hidden" name="hidden2" value="Some more hidden form data!">
<input type="text" name="userinput" size="15" value="change this if you like!">
<input type="submit" value=" POST demo ">
</form>
</font>
</td>
<td>
[<a href="/cgiplus-bin/postCGIplus.class">GET&nbsp;demo</a>]
<br>
<font size="2">
<form action="/cgiplus-bin/postCGIplus.class" method="POST">
<input type="hidden" name="hidden1" value="Some hidden form data!">
<input type="hidden" name="hidden2" value="Some more hidden form data!">
<input type="text" name="userinput" size="15" value="change this if you like!">
<input type="submit" value=" POST demo ">
</form>
</font>
</td>
<td>
<a href="postCGI.java">postCGI.java</a>
<br><a href="postCGIplus.java">postCGIplus.java</a>
</td>
<td>
CGI and CGIplus scripts capable of processing GET requests and POSTed
URL-encoded forms.
</td>
</tr>

</table>
</div>