PDA

View Full Version : using CGI with JSP


elty
August 11th, 2002, 06:26
With SSI, I can use < ! cgi exec="cgi-bin/script.cgi" - > to include a CGI script in a shtml file

but in JSP, it wont work. < % @ include file="cgi-bin/script.cgi" % > will just display the source code

ammoQ
August 11th, 2002, 15:42
JSP is translated to Java sourcecode, which is further translated into Java bytecode. For that reason, you cannot simply include a CGI script into a JSP page.

elty
August 11th, 2002, 16:53
no, there is just no method to use CGI with JSP?

ammoQ
August 11th, 2002, 16:56
I would not say "no way" but it would be very complicated, in most cases not worth the effort.