Chapter 15 Installing SSI
Server Side Includes (SSI) are directives placed in HTML pages. These SSI directives are evaluated on the server while the pages are being served. These directives allow you to add dynamically generated content to an existing HTML page.
Tomcat SSI support implements the same SSI directives as Apache.
SSI support can be servlet-based or filter-based. You select to use one to provide SSI support.
- Servlet-based SSI support is implemented using the class
org.apache.catalina.ssi.SSIServlet.
- Filter-based SSI support is implemented using the class
org.apache.catalina.ssi.SSIFilter.
SSI support is disabled by default.
Installing SSI
You may use SSI directives to execute programs external to the Tomcat JVM. This bypasses the security policy configuration in catalina.policy when you are running the Java Security Manager.
- Remove the XML comments from around the SSI servlet and servlet-mapping configuration in
$CATALINA_BASE/conf/web/xmlto use the SSI servlet.
- Remove the XML comments from around the SS filter and filter-mapping configuration in
$CATALINA_BASE/conf/web.xmlto use the SSI filter.


