tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Cicale" <i...@alsoftware.it>
Subject Re: [programmazione] Servlet Caching
Date Tue, 12 Aug 2008 14:35:43 GMT
Hi,
"<%@include" is a static include, that is at compile time the compiled code
of the INCLUDED jsp is simply copied.
But if you change a included jsp/servlet after the INCLUDING page has been
compiled, well, nothing happens in the INCLUDING.
You have to touch (modify something) the including jsp to make it recompiled
with the included modified code.
An other option is to dinamically include the page using:

"<jsp:include"

but it is really a different behaviour. Every time the including is called
it dinamically  recall the included one.

Regards
Luca Cicale


--------------------------------------------------
From: "Christian Poecher" <christian.poecher@mailinator.com>
Sent: Tuesday, August 12, 2008 1:37 PM
To: <users@tomcat.apache.org>
Subject: [programmazione] Servlet Caching

>
> Hi there,
>
> I am currently investigating a problem with our web app (Tomcat 5.5.23,
> Java
> 1.5, JSF 1.2) where the servlet cache does not always get updated when a
> JSF
> include is changed. This happend after changing an included JSF. The
> JSF-snippet that includes is:
> <html>
> <%@include file="/pages/inc/head.inc"%>
> <f:view>
> [...]
> <body>
> <%@include file="/pages/inc/bbs_header.inc"%>
> <h:form>
> <%@include file="/pages/inc/menu.inc"%>
> [...]
>
> The JSPServlet config in web.xml:
>    <servlet>
>        <servlet-name>jsp</servlet-name>
>        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
>        <init-param>
>            <param-name>fork</param-name>
>            <param-value>false</param-value>
>        </init-param>
>        <init-param>
>            <param-name>xpoweredBy</param-name>
>            <param-value>false</param-value>
>        </init-param>
>        <load-on-startup>3</load-on-startup>
>    </servlet>
>
> Adding development=false and checkInterval=30 to the parameter list did
> not
> change anything.
>
> Am I missing something or is there a limitation to the JSP Compiler with
> checking the dependencies? Or is the problem based upon that <%@include %>
> are not the way to include subviews in JSF?
>
> If you want me to provide more infos, please tell me.
>
> Thanks in advance for enlighten me,
> Chris
> -- 
> View this message in context:
> http://www.nabble.com/Servlet-Caching-tp18942690p18942690.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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
>
> 

---------------------------------------------------------------------
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