wood burning stoves 2.0*
The moose likes Tomcat and the fly likes server side includes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "server side includes" Watch "server side includes" New topic
Author

server side includes

gino jersey
Greenhorn

Joined: May 24, 2005
Posts: 21
I have an html file with a server side include:

in a.html there is:
<!--#include file="/portal/includes/subsite_header.txt" -->
....
....
<!--#include file="/portal/includes/subsite_footer.txt" -->


===> I try to bring this up in the browser to no avail.

If I use a JSP page and have:
<%@ include file="/portal/includes/subsite_header.txt" %>
...
...
<%@ include file="/portal/includes/subsite_footer.txt" %>

===> that works.


What could be missing that the include using just html won't work?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Are you using a server that supports SSI?
Do you have it enabled and configured?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
gino jersey
Greenhorn

Joined: May 24, 2005
Posts: 21
Ben -

What files or settings can I check?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I would start with the documentation for the container you're using.
Which is it?
gino jersey
Greenhorn

Joined: May 24, 2005
Posts: 21
It's a Windows 2003 server.
Apache Tomcat
JDK 1.3 (or 1.4)
Tomcat 4.0 (or 4.1)
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssi-howto.html
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60059
    
  65

Moved to the Tomcat forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: server side includes
 
Similar Threads
HTML include
JSP INCLUDE
how to use ssi in servlets using apache web server and jserv
server side includes-not working in linux server
Server side includes in WebLogic 10 JSP