jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes calling cgi script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "calling cgi script" Watch "calling cgi script" New topic

calling cgi script

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
how to call a cgi script from a servlet?
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
If you hava server which will run CGI scripts, then you can call a CGI by opening a URL to the appropriate URL which you would use to call the CGI from a browser.
To attempt to run a CGI directly from your servlet is both difficult and error prone. Java is not good at setting "environment variables" and they are a key part of the CGI specification.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link: http://aspose.com/file-tools
subject: calling cgi script
It's not a secret anymore!