In general, "data" caching should happen at the data (model of MVC) layer.
DAO's like iBatis and Hibernate do caching automatically, you just
configure a decay time in XML.
hth,
.V
[EMAIL PROTECTED] wrote:
hi all,
I would like to implement a cache design pattern in
my framework.
before re-invent
Hi,
An addendum to this problem.
What other cache are there apart from the browser cache. Tomcat server
cache ? Ways to disable it ? Our application has stopped dead in its tracks.
Thanks,
Mohan
-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: Monday, Fe
2003 12:02 PM
> To: 'Struts Users Mailing List'
> Subject: RE: cache the response and cache-example.war
>
>
> Look at OSCache from opensymphony.com
>
>
> | -Original Message-
> | From: Ginger Cheng [mailto:[EMAIL PROTECTED]]
> | Sent: Tuesday, February 18,
Someone gave me this a while back.
<%
if (jScriptOutput != null) {
out.print(jScriptOutput);
} else {
javax.servlet.jsp.tagext.BodyContent bc = pageContext.pushBody();
out = bc;
%>
<%-- any arbitrary JSP/HTML/JavaScript here --%>
<%
out = pageContext.popBody();
jScriptOutput = bc.getSt
Look at OSCache from opensymphony.com
| -Original Message-
| From: Ginger Cheng [mailto:[EMAIL PROTECTED]]
| Sent: Tuesday, February 18, 2003 10:52 AM
| To: Struts Users Mailing List
| Subject: cache the response and cache-example.war
|
| Hello,
| Is there any other way to cache
Just declare your formbean as "session" scoped, so it will be avaible to
build another view (another JSP)
Nico.
> Hi,
> I think I need to make it clearer. I need to cache the response
so
> I can give the user the option to represent the data in another format
> other than the one in the
ginal Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 9:42 PM
To: [EMAIL PROTECTED]
Subject: Re: Cache
You can use various http headers to tell the browser to not cache the pages.
There's no guarantee that the browsers will follow your suggesti
that would be a problem. Can't you upgrade?? It's suppose to be
backwards compatible.
-Original Message-
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 12:18 PM
To: Struts Users Mailing List
Subject: Re: Cache
I think I'm out of luck cause I
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 12:18 PM
To: Struts Users Mailing List
Subject: Re: Cache
I think I'm out of luck cause I'm using Struts 1.0.2, and the
RequestProcessor is not part of that version.
-Gus
Alvarado, Juan (c) wrote:
ruts Users Mailing List
Subject: Re: Cache
I think I'm out of luck cause I'm using Struts 1.0.2, and the
RequestProcessor is not part of that version.
-Gus
Alvarado, Juan (c) wrote:
Yeah sure I apologize for not being more detailed.
It goes in your struts-config file. I have
Oh yeah that would be a problem. Can't you upgrade?? It's suppose to be
backwards compatible.
-Original Message-
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 12:18 PM
To: Struts Users Mailing List
Subject: Re: Cache
I think I'm out of
uggest you read the javadoc on this class.
Good luck.
-Original Message-
From: ajTreece [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 11:55 AM
To: Struts Users Mailing List
Subject: Re: Cache
Juan
Could you be a little more specific... I'm not familiar with . Wh
2003 11:55 AM
To: Struts Users Mailing List
Subject: Re: Cache
Juan
Could you be a little more specific... I'm not familiar with . Where does it actually go and what would my processor subclass be?
Thanks...
Alvarado, Juan (c) wrote:
>We have used the following as a means of e
is in the struts-config.xml file. See the dtd for details.
David
From: ajTreece <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Cache
Date: Thu, 13 Feb 2003 10:55:18 -06
Juan
Could you be a little more specific... I'm not familiar with . Where does it actually go and what would my processor subclass be?
Thanks...
Alvarado, Juan (c) wrote:
We have used the following as a means of expiring pages. This way when the
user hits the back button they will get a p
We have used the following as a means of expiring pages. This way when the
user hits the back button they will get a page has expired message.
-Original Message-
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 10:54 AM
To: Struts Users Mailing List
Subject:
Yeah I tried adding this at the end of the action.
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Expires", "Wed, 26 Feb 1997 08:21:57 GMT");
I tested it but it does not seem to work on either IE or Mozilla
David Graham wrote:
You
You can use various http headers to tell the browser to not cache the pages.
There's no guarantee that the browsers will follow your suggestion though.
It sounds like you're trying to control the user too much.
David
From: Gus Delgado <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List
hi,
the init() function of a servlet is called only once, when the servlet
class is loaded by the container. so, to achieve your periodic refresh,
you may want to start a thread within the servlet container. IMHO that
does not follow the spirit of the J2EE programming practices.
A way we choosed
19 matches
Mail list logo