• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to call a CGI URL from JSP

 
Joe Matt
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

From my jsp page I need to call a url to a perl script running on apache web server. The perl script does some calculations and generates the output. I want the generated output to be included in the jsp page that calls the url

Any idea how to achieve it? I tried calling response.sendRedirect("http://myexampleserver.com/cgi-bin/www/test/test.pl") but it loads the resulting page genereated by the perl script into the browser with the url as "http://myexampleserver.com/cgi-bin/www/test/test.pl".

I want the resulting page to be embedded into test.jsp

thanks a lot
Joe
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<c:import>
 
Joe Matt
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for your reply. That is exactly what I was looking for.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My pleasure. Welcome to the Ranch.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!