• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SSINCLUDE / .SHTML

 
Vikrant
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
I want to know whats ssinclude and what purpose does they serve ?
Please also let me know whats .shtml ?
thanks
Vikrant
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The files with .shtml contains SERVLET tag, Through this tag we can direct the shtml file to the servlet. The output of that servlet will be included in place of that servlet tag and it will be returned to the client(browser) from which this request was iniated. This is called SSI. Also there is a SSI servlet in the java web server that is internal servlet of the server. when file servlet determines that the requested file is with .shtml extension, it hands over --.shtml file to SSI servlet which then parses that SERVLET tag and returns back the shtml file by replacing the output of the servlet with that SERVLET tag.
So from all this, I think you will be pretty much clear about shtml and SSI
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That was the servlet-specific information about ssi and .shtml as implemented in Sun's Java Web Server. Regular (non-servlet) servers treat .shtml a bit differently.
To Apache, for example, a .shtml extension is an indication that some "special comments" in the HTML are to be processed when the page is displayed. These special comments include <!--#include file="name" --> to include another file, <!--#echo var="name" --> to show the value of an environment variable, <!--#flastmod file="name" --> to show the last-modified data of a file, and so on.
These are all useful, although nowhere near as flexible as servlets or JSPs. For more details see the Apache documentation, or (one of my favourite books) "Webmaster in a Nutshell" from O'Reilly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic