tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ihab A.B. Awad" <i...@stanford.edu>
Subject Re: <jsp:include> does nothing [ debug info ]
Date Tue, 24 Aug 2004 23:14:22 GMT
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 <ihab@stanford.edu>
Snr Scientific Programmer, Dept of Genetics


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message