see intermixed
"Eric Ace" <[EMAIL PROTECTED]> on 02/12/2002 10:57:28 PM
Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
cc:
Subject: Cannot get SSI to work on Tomcat 4.0.2
I justdownloaded and installed Tomcat 4.0.2. I am trying to have an html
page do an SSI of a separate shtml. I am running Win2K, Java Standard
Edition 1.3.1_01. I have scanned the list and can't see why this shouldn't
be working...
Here's what I'm doing:
File "main.html" contains the text:
<!--#include virtual="/hdr.shtml" -->
The above syntax works with Apache. If configured right, Apache will parse
the "main.html" file and include the contents of "hdr.shtml" in
"main.html".
The only way to use includes in Tomcat is using a JSP page. Try <%@ include
file="/hdr.shtml" %> instead. And rename main.html to main.jsp.
In short you could download, install, and configure Apache to evaluate SSI
directives or use jsps to include files if you are using only Tomcat.
Per release notes, I have:
1. Uncommented the ssi servlet declaration in
\jakarta-tomcat-4.0.2\conf\web.xml
2. Uncommented the mapping for the ssi servlet in the aforementioned
web.xml file
3. Renamed the file
\jakarta-tomcat-4.0.2\server\lib\servlets-ssi.renametojar to
\jakarta-tomcat-4.0.2\server\lib\servlets-ssi.jar.
My web app is installed under the webapps directory in a folder called
"irt". So, the full path of the main.html file above is "
\jakarta-tomcat-4.0.2\webapps\irt\main.html", and the file I'm trying to
include is "\jakarta-tomcat-4.0.2\webapps\irt\hdr.shtml".
I must be doing something obviously wrong because it simply does not work.
There are no errors. Nothing in the logs. I look at the source coming down
to the browser and the include directive is being passed directly through.
Yet if I hit that page directly in the browser URL the page is in fact
retrieved:
http://localhost/irt/hdr.shtml
Help is much appreciated...
Hope this helps.
RS
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>