>>> 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

Reply via email to