Article View: aus.computers.java
Article #1105Re: CGI and Java
From: Tom Davies
Date: Sat, 17 Jul 1999 00:00
Date: Sat, 17 Jul 1999 00:00
24 lines
1619 bytes
1619 bytes
Prescott Pym wrote: > > Gday again. > > I'm having some trouble. I can't figure out how to work Java and a cgi > request. What I want to do is to collect some information from a web page > through a POST or GET method. This would call a batch file (I'm running > win98), and invoke the java interpreter. I can't figure out how to read the > data from the web browser, and how to get it back. > > Any help much appreciated > Prescott The best thing to do with Java is to use Servlets rather than CGI. This means that you don't start a new process for each request, and so is *much* faster. You don't say which web server you are using. Have a look at www.servletcentral.com and go to their 'resources' section for a list of servlet compatible web servers for your platform. The only one I've used on Win32 is Jetty (www.mortbay.com) but there are many others which will work. Tom
Technical Details
Message-ID:
<378FD489.BAD1FD9E@smartchat.net.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<378ee128@dvs1.aus.to>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,858f863570ffc740 X-Google-Attributes: gid10d6db,public From: Tom Davies <tom@smartchat.net.au> Subject: Re: CGI and Java Date: 1999/07/17 Message-ID: <378FD489.BAD1FD9E@smartchat.net.au> X-Deja-AN: 501736081 Content-Transfer-Encoding: 7bit References: <378ee128@dvs1.aus.to> To: Prescott Pym <ppym@bigpond.net.au> Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@connect.com.au X-Trace: merki.connect.com.au 932132782 17861 210.8.3.27 (16 Jul 1999 13:46:22 GMT) Organization: Customer of Connect.com.au Pty. Ltd. Mime-Version: 1.0 NNTP-Posting-Date: 16 Jul 1999 13:46:22 GMT Newsgroups: aus.computers.java