Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do you open a cgi script in a java applet

0 views
Skip to first unread message

Brent Cameron

unread,
Sep 14, 1996, 3:00:00 AM9/14/96
to

How do you open a cgi script in a java applet

I am currently doing this

URL url = new URL("file://my_directory_path/script?param");

Thanks for your help

--

|||||
(* *)
--------------o0O (_) O0o-------------
___ ___ ___
/ / / / / Brent Cameron
/--/ / /__/ br...@cs.uq.oz.au
/__/ /__ / \ C.S. Dept U.Q.
--------------------------------------

--

|||||
(* *)
--------------o0O (_) O0o-------------

Guy T. Rice

unread,
Sep 14, 1996, 3:00:00 AM9/14/96
to

In article <51d007$q...@miso.cs.uq.edu.au>, br...@cs.uq.edu.au (Brent
Cameron) wrote:

|How do you open a cgi script in a java applet
|
|I am currently doing this
|
|URL url = new URL("file://my_directory_path/script?param");

Err, no. CGI is run by the server. What you'd need to do is
install an HTTPd server on your machine, then use a URL like
"http://localhost/cgi-bin/~yourname/script?param"

Johnathan Mark Smith

unread,
Sep 15, 1996, 3:00:00 AM9/15/96
to

The best way to do it is to use the CGIAccess class made by the Staten
Island Java Group (http://www.walrus.com/~smithj/java)
--
*-----------------------------------------------------------*
Printed on 100% recycled bits! Help reduce net trash!


Johnathan Mark Smith
smi...@walrus.com

Staten Island Online http://www.walrus.com/~smithj/
Staten Island Java(tm) Group http://www.walrus.com/~smithj/java
Johnathan Mark Smith http://www.walrus.com/~smithj/web
*-----------------------------------------------------------*

Brent Cameron <br...@cs.uq.edu.au> wrote in article
<51d007$q...@miso.cs.uq.edu.au>...


>
> How do you open a cgi script in a java applet
>
> I am currently doing this
>
> URL url = new URL("file://my_directory_path/script?param");
>

Stefan Andersson

unread,
Sep 16, 1996, 3:00:00 AM9/16/96
to Johnathan Mark Smith

Johnathan Mark Smith wrote:
>
> The best way to do it is to use the CGIAccess class made by the Staten
> Island Java Group (http://www.walrus.com/~smithj/java)
> --

You can POST with only URL and URLConnection. Best way ... well there is
a benefit in not relying on classes made by others.

I used to want to have an example of how *EXACTLY* you could POST from
an applet but I couldn't find one. So I spent too many hours on
reinventing the wheel *AND* published what I found. So visit my drab
page on dynamic compilation on-th-fly of Java code (which incorporates
POSTing) at http://www.prosolvia.se/People/stefana/ClassLoad.html

/StefanA
--
/ _| |___ __ _ _ ___ Stefan Andersson Phone: +46 31 703 51 21
| | | |_ \/ _| | | __\ Prosolvia Clarus AB Fax: +46 31 703 51 20
| |_| | _ | | | | |__ | Gårdavägen 1 ste...@clarus.se
\___|_|___|_| \___/___/ S-412 50 Göteborg, SWEDEN http://www.clarus.se

0 new messages