"Garrett Smith" <[EMAIL PROTECTED]> on 03/02/2002 03:23:53 PM
Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
cc:
Subject: SSI in TC3.3?
Does Tomcat 3.3 support server-side includes for static content?
Yes
I know that JSPs support including other JSPs or other static html files,
but I imagine that this is a relatively expensive process, since JSPs are
compiled and executed.
You can have two types of includes in JSP.
1) static includes (using <%@ include file="<path>/filename" %>. In this
the named file is included before the JSP is compiled into a servlet. The
files are combined into a single source and then translated into a servlet.
This happens just once (and ofcourse, again, when the including jsp is
modified). Static includes are faster than dynamic includes. This is bcoz
of preprocessing of the static include during page translation and
compilation to a servlet. Recommended for page headers, footers, etc. which
do not change.
2) dynamic includes (using <jsp:include page="<path>/<filename>" flush
="true"/>). In this the named file is included at every request. ie.
everytime a request is made to the servlet.
Thanks,
Garrett
RS
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>