Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 9th, 2004, 08:18 AM
Registered User
 
Join Date: Feb 2004
Location: , , .
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!

Reply With Quote
  #2 (permalink)  
Old June 13th, 2004, 12:52 AM
Registered User
 
Join Date: Jun 2004
Location: , , .
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!



Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:42 PM.


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