If you use <[EMAIL PROTECTED], the included file will be compiled along with the rest of the JSP code, so it will only be read once rather than every time the page is accessed. -- Len
On 3/6/06, Mike Sabroff <[EMAIL PROTECTED]> wrote: > You should use > <%@ include file="other.jsp" %> instead of <jsp:include ....> > The jsp:include is for dynamic content that changes a lot, > the @ include file is for static content and will get you closer to > where you want to be. > as far as cacheing goes, I am not knowledgeable enough to answer that > question reliably. > > Mike > > Xuekun Hu wrote: > > Hi, > > > > I'm a newbie of TOMCAT 5.5. I have some jsp scripts which inlucde some > > static files by using <jsp:include> element. I want to cache them to > > improve the performance. Can TOMCAT do that? If yes, how? > > > > I searched the docs, and found an attribute "cachingAllowed" in > > context container. Does the attribute work for <jsp:include> element? > > > > Thanks in advance. > > > > Thx, Xuekun > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- > Mike Sabroff > Web Services > Developer > [EMAIL PROTECTED] > 920-568-8379 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]