The WASD Java environment was first implemented in December 1997 and there has been no further development since... so there may still be a few wrinkles :^( Developed using the first-release JDK1.1 beta kit for OpenVMS Alpha V7.1 Verified working (and modified slightly) with the final release JDK 1.1.6 in September 1998. Verified as still working with the JDK 1.1.8-3 update in June 2000. The advent of additional VMS Java releases required some adjustments to the JAVA.COM wrapper procedure in March 2002 (and verified still working again JDK 1.3.1). As of WASD v8.1 JAVA.COM expects class files to be located in [CGI-BIN].
![]() |
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 demos. will only work if Java is installed on the server system!
The class that makes CGI support relatively easy is
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 Environment.
Note that all these scripts are executed using the CGIplus path, however some behave as standard CGI scripts, exiting after responding to the request, while the others persist, responding to multiple requests. The CGIplus path is always necessary however as all use the CGIplus variable data stream to retrieve the CGI variables.
| 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/ 29-Nov-2009 03:43 1,536 subdirectory
BUILD_JAVA.COM 29-Nov-2009 03:43 632 DCL procedure
BUILD_JAVADOC.COM 29-Nov-2009 03:43 199 DCL procedure
CGIPLUS.HTML 29-Nov-2009 03:43 12,151 "Class CGIplus"
CGIPLUS.JAVA 29-Nov-2009 03:43 14,090 Java source
DUMPCGI.JAVA 29-Nov-2009 03:43 1,392 Java source
HI1CGI.JAVA 29-Nov-2009 03:43 1,103 Java source
HI1CGIPLUS.JAVA 29-Nov-2009 03:43 1,425 Java source
HI2CGI.JAVA 29-Nov-2009 03:43 1,221 Java source
HI2CGIPLUS.JAVA 29-Nov-2009 03:43 2,173 Java source
JAVA.COM 29-Nov-2009 03:43 3,126 DCL procedure
JAVALOGO.GIF 29-Nov-2009 03:43 1,927 GIF image
PACKAGES.HTML 29-Nov-2009 03:43 457 "Package Index"
POSTCGI.JAVA 29-Nov-2009 03:43 1,858 Java source
POSTCGIPLUS.JAVA 29-Nov-2009 03:43 2,099 Java source
README.HTML 29-Nov-2009 03:43 4,511 "Scripting with Java README"