tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <gbayn...@cox.net>
Subject Re: can't get #include to work
Date Thu, 17 Nov 2005 04:37:38 GMT
no, SSI scripts aren't recognized by some browsers, so to avoid letting them 
error out the SSI is wrapped in comments and older browsers will ignore it.

The section on directives on this page gives an example:

http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html




----- Original Message ----- 
From: "ALEX HYDE" <alex.hyde@btinternet.com>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Wednesday, November 16, 2005 4:50 PM
Subject: Re: can't get #include to work


> Is that supposed to be a comment and not an include?
>
> <!-- comment -->
>
> <%@ include file="myinclude.html" %>
>
> --- Mark Thomas <markt@apache.org> wrote:
>
>> gbaynham@cox.net wrote:
>> > I'm trying to include a file as my footer section.
>>  I have formatted the section in home.html as:
>> >
>> > <!--#include file="footer.html"-->
>> >
>> > after doing this and viewing the file through my
>> local_host:8080 i don't see the footer.html file
>> showing up.
>> >
>> > from what I can see I need to enable SSI within
>> tomcat.  I'm supposed to add
>> >
>> > Options +Includes
>> > to my  httpd.conf or .htaccess file.
>> This is to install SSI for the Apache web server
>> (httpd).
>>
>> > I'm running tomcat 5.5.9 on a windows XP box, I
>> know, shame on me but it's all I have right now.
>> You need to uncomment the SSI servlet definition AND
>> mapping in the
>> conf/web.xml file
>>
>> It sounds like you need to read the Tomcat
>> documentation. The SSI how
>> to would be a good place to start.
>>
>>
> http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html
>>
>> mark
>>
>>
>>
> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail:
>> users-help@tomcat.apache.org
>>
>>
>
>
>
>
> ___________________________________________________________
> To help you stay safe and secure online, we've developed the all new 
> Yahoo! Security Centre. http://uk.security.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message