I am trying to figure out the best way to include a header and footer on
every page on a web site which includes both JSP's and static HTML files.
There are a couple of options, the simplest of which is to use the JSP
include directive <%@ include file="/header.jsp" %> or the SSI directive
<!--#include file="footer.html" -->. My header file is a JSP that displays
the currently logged-in user's name, current time, etc.

My question is one of efficiency. I am using Apache to serve the HTML files,
and Tomcat to serve the JSP files. If I convert every HTML file over to a
JSP file just to use the JSP include directive, then I would be delegating
every page to Tomcat, requiring each page to be parsed by the Tomcat engine.
Would the most efficient route be to use the JSP include directive on every
existing JSP page, and to use the SSI include on every HTML file? This way,
Apache would not have to delegate the .SHTML files to Tomcat. This is my
inclination, but I have read that Apache SSI's are very inefficient.

Thanks for your help.

- Adam

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to