You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Luca Cicale <in...@alsoftware.it> on 2008/08/12 16:35:43 UTC
Re: [programmazione] Servlet Caching
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" <ch...@mailinator.com>
Sent: Tuesday, August 12, 2008 1:37 PM
To: <us...@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
Re: [programmazione] Servlet Caching
Posted by Christian Poecher <ch...@mailinator.com>.
Thanks a bunch Luca. I inherited quite some messy code before the old
developer said goodbye. So far the big architectural issues in the Data
Access and Logic layers have been cleaned up, but the problems in the view
still exist. I will live with this issue for now and refactor the view later
to use JSF subviews instead of static includes.
Best regards,
Chris
Luca Cicale wrote:
>
> 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.
>
>
--
View this message in context: http://www.nabble.com/Servlet-Caching-tp18942690p18947740.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