The Artima Developer Community
Sponsored Link

Legacy Design Forum
Designing with Runtime Class Information

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Nescape+applet+CGI=???

Posted by Vitaliy on July 09, 1999 at 4:54 AM

May be its offtopic but I need a help.
This code launch CGI on the server:
try{
URL u=new URL(cgi_place);
URLConnection connection=u.openConnection();
connection.setDoOutput(true);
PrintWriter out=new PrintWriter(connection.getOutputStream());
out.println(URLEncoder.encode(out_string));out.close();
BufferedReader in=new BufferedReader(new InputStreamReader(connection.getInputStream()));
while (in.ready()) System.out.println(in.readLine());
in.close();
System.out.println("done");
}catch(Exception ex){System.out.println(ex.toString());}
The CGI must write input information into file. It works correct
while I'm use appletviewer but if I'm use Netscape 4.04 it write
"done" and that's all! It don't wonna start CGI. WHY???




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us