tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Schönhaber <mailing-tomcat-u...@schoenhaber.de>
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
http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html
or this
http://httpd.apache.org/docs/1.3/howto/ssi.html
to find out how SSI work.

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

Regards
  mks

---------------------------------------------------------------------
To start a new topic, e-mail: users@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