tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leonard Bedner <>
Subject Issue With SSI And JSP
Date Thu, 01 Oct 2009 22:10:53 GMT

Hello all.

First off, here are my specs:

Windows XP Professional Edition
Tomcat 6.x
Java EE Project

So, as stated in the title, I am having some issues regarding the use of SSI
and my JSP pages. Currently, I am taking my website that was done for me
many years ago, and turning it from a static site into a dynamic one. The
first thing I did was start using SSI for the html footers and table of

Here's my web.xml:


This is working exactly as expected. I have a file named index.html that has
this within it:

<!-- Table Of Contents Include File -->
<!--#include file="" --> 

And it works just fine. It includes the file, "", and renders it on
index.html as expected. Now, it turns out that index.html will be turned
into index.jsp. After I made the changed, things still worked. However, when
I tried to add some jsp code, that is where things fell apart.

For reasons that I don't understand, the jsp code just isn't working.
However, when I take it out of the <url-pattern>, it works just fine. Of
course, then the ssi doesn't work on those pages. Here's an example of a jsp
file that I used for testing:

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>My Title</title>
Hello... The time is now <%= new java.util.Date() %>
Context root = <%= application.getContextPath() %>

When jsp is taken out of <url-pattern>. it returns the time, and the context
path perfectly. When I add it back though, I just get whitespace.

Any ideas?
View this message in context:
Sent from the Tomcat - User mailing list archive at

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

View raw message