struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen, Gin" <Gin.C...@NielsenMedia.com>
Subject RE: cache the response and cache-example.war
Date Tue, 18 Feb 2003 17:11:25 GMT
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.getString();
  out.print(jScriptOutput);
}
%>
-Tim

-----Original Message-----
From: Ginger Cheng [mailto:ze.cheng@mail.mcgill.ca]
Sent: Tuesday, February 18, 2003 11:52 AM
To: Struts Users Mailing List
Subject: cache the response and cache-example.war


Hello,
         Is there any other way to cache it? Cuz I am concerned that the 
application is very big and it may slow down the server. Besides, where to 
download the cache-example.war of jakarta? The links are all dead. Thank
you.
         ginger

At 05:22 PM 2/18/2003 +0100, you wrote:
>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 immediate response jsp page. I check the cache
> > tag but what I want to cache is the form bean from server other than
part
> > of the jsp page. Can anyone help me with this? Thank you.
> >          ginger
> >
> > At 10:51 AM 2/18/2003 -0500, you wrote:
> > >Hello,
> > >         I need to cache the response of last request. Can anyone tell
me
> > > how to do that in Struts? Any help is appreciated.
> > >         ginger
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > >For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message