But, it took me a long time to learn how! Things I did:

In httpd.conf

    AddType text/html .shtml
    #AddHandler server-parsed .shtml

Note that the AddHandler line has been commented out. This is, I think,
because Tomcat will serve the shtml pages. If you try to let Apache do
the work you will get 'page not found'.

In web.xml for the particular application I added :

    <servlet>
        <servlet-name>Ssi</servlet-name>
       
<servlet-class>org.apache.catalina.servlets.SsiInvokerServlet</servlet-class>
        <init-param>
                <!-- debug > 0 == debug enabled -->
                <param-name>debug</param-name>
                <param-value>0</param-value>
        </init-param>
        <init-param>
                <!-- time in seconds before the SSI page expires -->
                <param-name>expires</param-name>
                <param-value>666</param-value>
        </init-param>
        <init-param>
                <!-- 0 == false; 1 == true -->
                <param-name>buffered</param-name>
                <param-value>0</param-value>
        </init-param>
        <init-param>
                <!-- 0 == false; 1 == true -->
                <param-name>isVirtualWebappRelative</param-name>
                <param-value>0</param-value>
        </init-param>
        <load-on-startup>5</load-on-startup>
    </servlet>
<servlet-mapping>
        <servlet-name>Ssi</servlet-name>
        <url-pattern>*.shtml</url-pattern>
</servlet-mapping>


This is not documented, at least not in the stable release, which is a
pitty because it could have saved me a lot of time. Using 'ssi' as
servlet name (in stead of Ssi) resulted in a  knid of 'not unique name'
error:

(From localhost_log:
Configuration error in application web.xml
java.lang.IllegalArgumentException: addChild:  Child name 'ssi' is not
unique
)

Hope this info is useful for others too.

Rob

-- 
_____________________________________________________________

Rob W. van Swol
National Aerospace Laboratory NLR       Tel. +31 527 248252
P.O. Box 153                            Fax  +31 527 248210
8300 AD Emmeloord                       E-Mail [EMAIL PROTECTED]
The Netherlands                         http://www.neonet.nl/

Reply via email to