The WASD Java environment was first implemented in December 1997 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. Confirmed working for Java 5 and Java 6 at December 2014. That it continues to work nearly twenty years after coding is a testament (to something, not sure exactly what :-)
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.
Of course the demonstrations will only work if Java is installed on the server system! ... Check Now
The class that makes CGI support relatively easy is
The wrapper procedure JAVA.COM ensures the required runtime environment is established.
Note that due to the way classes are specified by the WASD server Java class names invoked as main()s must be all lower case.
For setup requirements check the Other Environments chapter in the Scripting documentation.
Directory Contents | |||
---|---|---|---|
Standard CGI | CGIplus | Source Code | Comment |
CGIplus.java
javadoc |
A generic class that allows Java scripts to be used in WASD's environment. The demonstration scripts all use this class. | ||
[demo 1]
[demo 2] [demo 3] |
dumpCGI.java | Simple CGI script to dump the CGI name and value pairs read from the CGIplus data stream. | |
[demo] | [demo] | hi1CGI.java
hi1CGIplus.java |
Simple CGI and CGIplus scripts. |
[demo] | [demo] |
hi2CGI.java
hi2CGIplus.java |
Simple CGI and CGI plus scripts providing HTML. |
[GET demo]
|
[GET demo]
|
postCGI.java
postCGIplus.java |
CGI and CGIplus scripts capable of processing GET requests and POSTed URL-encoded forms. |
Name Revised Size Description
images/ 3-Mar-2020 11:49 1,024 subdirectory
build_java.com 31-Jan-2020 14:54 912 DCL procedure
build_javadoc.com 31-Jan-2020 14:54 199 DCL procedure
cgiplus.html 3-Mar-2020 11:48 12,151 "Class CGIplus"
cgiplus.java 31-Jan-2020 14:54 14,090 Java source
dumpcgi.java 31-Jan-2020 14:54 1,556 Java source
hi1cgi.java 31-Jan-2020 14:54 1,103 Java source
hi1cgiplus.java 31-Jan-2020 14:54 1,425 Java source
hi2cgi.java 31-Jan-2020 14:54 1,221 Java source
hi2cgiplus.java 31-Jan-2020 14:54 2,173 Java source
java.com 31-Jan-2020 14:54 3,549 DCL procedure
javalogo.gif 31-Jan-2020 14:54 1,927 GIF image
packages.html 3-Mar-2020 11:48 457 "Package Index"
postcgi.java 31-Jan-2020 14:54 1,858 Java source
postcgiplus.java 31-Jan-2020 14:54 2,099 Java source
readme.html 3-Mar-2020 11:48 4,518 "Scripting with Java README"