Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 9th, 2004, 08:18 AM
Registered User
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tomcat 5 with SSI ... HELP! HELP! HELP!

I'm running Tomcat/5.0.18 WITHOUT apache. It works fine, it can shows .html and .shtml files also. How can I enable SSI? I went through the renamejar and uncomment things, but it still doesn't work. Thanks in advance!

 
Old June 13th, 2004, 12:52 AM
Registered User
 
Join Date: Jun 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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!








Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET and SSI kwilliams ASP.NET 1.x and 2.0 Application Design 1 March 21st, 2006 11:47 PM
XSL & SSI - Is it possible? kwilliams XSLT 1 August 9th, 2005 09:48 AM
SSI includes in XSLT nrane26 XSLT 1 January 7th, 2005 04:51 AM
SSI funnies aware HTML Code Clinic 18 March 3rd, 2004 03:18 PM
Response.Write an SSI hcweb Classic ASP Basics 2 November 2nd, 2003 05:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.