Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling cgi script

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to call a cgi script from a servlet?
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic