spent many hours testing and this worked on tomcat version 5.0.25
hope it helps.
follow this:
1. rename the file "$CATALINA_HOME/server/lib/servlets-ssi.renametojar file" to "$CATALINA_HOME/server/lib/servlets-ssi.jar"
2. In "web.xml" file, unmask SSI declaration...
<servlet>
<servlet-name>ssi</servlet-name>
<servlet-class>
org.apache.catalina.ssi.SSIServlet
...
3. Change the param-value of "isVirtualWebappRelative" from 0 to 1
4. In "web.xml" file, Unmask the SSI mapping...
<servlet-mapping>
<servlet-name>ssi</servlet-name>
<url-pattern>*.shtml</url-pattern>
</servlet-mapping>
5. restart tomcat
6. In your shtml file, use...
NOTE: type exactly, observe case and space!
|