tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Shevland" <>
Subject RE: Execute a CGI from a bean
Date Mon, 14 Aug 2000 11:06:12 GMT
You may be able to use the URLConnection object to make a connection to the URL of your CGI
program; once you've got the connection you can read its output from a stream (and send this
out as the servlet's output). This may not fits your needs though.


>-----Original Message-----
>From: Oscar Sanchez Vilar []
>Sent: Monday, 14 August 2000 8:53 PM
>Subject: Execute a CGI from a bean
>Hi there.
>I'd like to implement the following scenario:
>I have a JSP that uses a bean to validate some user data, and  if that
>user data meets some conditions, I would like to give the user back a
>page generated by an existing CGI. The only way I've found to do it is
>by having the user forwarded by the bean to a jsp that  redirects the
>user to the cgi using the HTML META REFRESH Tag (0 secs), but this way
>the 2ond jsp is shown for a moment, situation that i'd like to avoid.
>Does anyone know a better way?
>Thanks in advance,

View raw message