Re: [programmazione] Servlet Caching

2008-08-12 Thread Luca Cicale

Hi,
[EMAIL PROTECTED] 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 [EMAIL PROTECTED]
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
[EMAIL PROTECTED] file=/pages/inc/head.inc%
f:view
[...]
body
[EMAIL PROTECTED] file=/pages/inc/bbs_header.inc%
h:form
[EMAIL PROTECTED] file=/pages/inc/menu.inc%
[...]

The JSPServlet config in web.xml:
   servlet
   servlet-namejsp/servlet-name
   servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
   init-param
   param-namefork/param-name
   param-valuefalse/param-value
   /init-param
   init-param
   param-namexpoweredBy/param-name
   param-valuefalse/param-value
   /init-param
   load-on-startup3/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 [EMAIL PROTECTED] 
%
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [programmazione] Servlet Caching

2008-08-12 Thread Christian Poecher

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,
 [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]