How can I write CGI programs in the Java programing language?
CGI (the Common Gateway Interface for web servers) is an API for writing programs that use the web as its user interface. By far, the most popular language for this task is Perl, because of its powerful text handling capabilities, and excellent resources available for making the jobs of CGI programmers easier. CGI programs can be written in any language, including Java. Unfortunately, the interface between the web server and the CGI program uses environment variables extensively. Use of environment variables has always been deprecated in Java programming language, because of portability issues (not all systems have environment variables). The way to get around this is to write a “wrapper” for the Java program in a language that supports environment variables, and can then invoke the Java technology-enabled program with the appropriate environment data passed in as Java properties. Because the Java runtime environment is not a lightweight process, it might take a moment for the CGI prog