tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Schönhaber <>
Subject Re: regarding server side includes in shtml
Date Tue, 14 Nov 2006 09:51:02 GMT
prakash shanmugam wrote:
> In my project I need to use Server Side Includes. I just want to know the
> details how to make that server side includes to work properly which is
> constructed as  ". Shtml file " .  I am using tomcat5 .
> I have done the following things.
> 1)     included servlet tags in html file wherever necessary and saved it
> as .shtml file.
> 2)     Then in conf/web.xml file I have uncommented the tags related to SSI
> mapping
> 3)     Then renamed server/lib/servlet-ssirenametojar file as
> server-ssi.jar .
> But the servlet code included in the servlet tag is not at all called and
> executed.
> Can u help me to solve this problem

SSI and Servlets are completely different things. When a HTML file is handled 
by the SSI mechanism no "servlet tag" (whatever that means) or Java code will 
be executed. Read this
or this
to find out how SSI work.

If you want to embed Java code into HTML, use JSP.


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message