Hi all-

I'm using Tomcat 4.01 on Win2k and I'm trying to get a server side include to work.  
I'm using the SSI "include virtual", and what I'm experiencing is that if I include a 
static file, it works (so I have taken the basic steps to get SSI working on Tomcat), 
but if I try to include the contents of another servlet, such as:

<!--#include virtual="/servlet/ipa.MenuServlet"-->

...I always get back "[an error occured processing this directive]".  However, I know 
the include tag is valid, because if I configure my Apache to serve the shtml file 
(instead of passing the request to tomcat), then the SSI works.  So I suspect that it 
is a problem with Tomcat's SSI handling.

Can anyone confirm this?

What's really odd is that I tried doing a <jsp:include page=...> on the same URI, it 
returns blank, i.e. no content inserted! But I know the URI itself is valid because I 
can cut and paste it into my browser and it returns my proper content.

So is there a problem doing a jsp:include on a servlet as well? Does it matter that 
the servlet is in another context than this page?

Any help greatly appreciated!

Thanks!

-Richard

Reply via email to