Thanks very much for the fast response Nic,

In that case, How is the option 2 done. How to use the CGIServlets in
calling the cgi scripts. It would be excellent if you could give me an
example or a URL to find it. Thanks.

Kind Regards,
Mahesh Devendran

-----Original Message-----
From: Nic Ferrier [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 1:13 PM
To: [EMAIL PROTECTED]
Subject: Re: Perl,CGI and PHP from servlets


>>> Mahesh Davendran <[EMAIL PROTECTED]> 01-Jun-01 1:05:26 PM >>>

For all 3 the answer is yes, kinda. You can have a servlet use an
HttpURLConnection to use another webserver to call a PHP, perl or CGI
script.

That's not very elegant though and I suspect it's not what you meant.
So here's some more detailed responses:


>1) Is it possible to call a PHP page from servlets?

No. There is currently no way to embed a PHP into a servlet
container, technically it could be done though. Perhaps someone out
there is working on it.


>2) Is it possible to call a cgi from servlets?

Yes. There are CGIServlets out there which use Java Process
abstractions to call external scripts with the correct CGI
environment.


>3) Is it possible to call a run a perl script from servlets,

No. Same as with PHP. Someone is working on getting Perl and Java
working together and once that has been done it will be very easy to
use Perl from a servlet container.


Nic Ferrier

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to