Hi everyone. More on this problem. When I do --

  <jsp:forward page="cgi-bin/search/test.pl"/>

then, in org.apache.catalina.servlets.CGIServlet.java, inner class CGIEnvironment, method "boolean setCGIEnvironment(HttpServletRequest)", the following is true --

  sPathInfoOrig = "/search/test.pl"

sCGINames[0] = "/home/ihab/swdev/smdj/webapp/smd/cgi-bin/search/test.pl"
sCGINames[1] = "/smdj/smd/html/cgi-bin/search/test.pl"
sCGINames[2] = "/search/test.pl"
sCGINames[3] = "test.pl"


however, when I do --

  <jsp:include page="cgi-bin/search/test.pl"/>

the corresponding variables are --

  sPathInfoOrig = "/smd/html/index.jsp"

  sCGINames[0..3] = null

In other words, for some reason, the servlet handling the CGI is being told that the name of the CGI is actually the name of the enclosing JSP page, not the CGI it is supposed to be handling. As a result (and perhaps not surprisingly), the request fails with an HTTP 404.

Is there a Tomcat expert or developer on the list who can comment on this? Am I doing something wrong?

Thanks a lot and peace,

Ihab

--
Ihab A.B. Awad <[EMAIL PROTECTED]>
Snr Scientific Programmer, Dept of Genetics


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to