tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ihab A.B. Awad" <>
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/"/>

then, in, inner class 
CGIEnvironment, method "boolean setCGIEnvironment(HttpServletRequest)", 
the following is true --

   sPathInfoOrig = "/search/"

   sCGINames[0] = 
   sCGINames[1] = "/smdj/smd/html/cgi-bin/search/"
   sCGINames[2] = "/search/"
   sCGINames[3] = ""

however, when I do --

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

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 A.B. Awad <>
Snr Scientific Programmer, Dept of Genetics

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message