-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
sajida,
1. the chunk of code would be the following. you should then obtain the
streams from which you can get the desired output, then send it via the
res.getOutputStream() object to the browser that made the request.
try{
URL url = new URL("http://hostname/cgi-bin/your.cgi");
this.connection = url.openConnection();
}catch(MalformedURLException
){
System.out.println("At Url: " + mal);
}
2. This question has more to do with websites that are exclusive to servlets like
servlet tutorial, www.purpletech.com and more
Riaz
---------Original message
>> Would some one like to tell me, is there any way to execute cgi
>> script from servlet
>
>Open a URLConnection to the CGI script.
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]