absolutely
it is a function of the action servlet.

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Steve Leung
> Sent: Friday, August 16, 2002 10:16 AM
> To: Andrew B Forman; [EMAIL PROTECTED]
> Subject: RE: [MVC-Programmers] Refreshing pages
>
>
> Hello,
>   For the flow 1.jsp->2.do->3.do->4.jsp->5.do->6.jsp.
> Do you mean it will add the header on 4.jsp and 6.jsp
> if I set the config nocahe = true ?
>
>
>  --- Andrew B Forman <[EMAIL PROTECTED]>
> 的郵件內容:> As you're using struts you can
> accomplish this
> > even easier by adding the lines
> >
> >     <init-param>
> >       <param-name>nocache</param-name>
> >       <param-value>true</param-value>
> >     </init-param>
> >
> > to the
> >
> >   <servlet>
> >     <servlet-name>action</servlet-name>
> >
> >
> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> >
> > section of your web.xml.
> >
> > Struts will then automatically put those no-cache
> > headers into all your jsps.
> >
> > Andrew
> >
> > > -----Original Message-----
> >
> > > Subject: RE: [MVC-Programmers] Refreshing pages
> > >
> > >
> > > Alex,
> > >
> > > Put this code at the top of every JSP page that
> > you want to refresh each
> > > time it loads.  I don't understand it, but it
> > works!  Personally, I put it
> > > at the top of every page just for the hell of it.
> > >
> > > <% // This JSP scriptlet will prevent troublesome
> > page-caching
> > > response.setHeader("Cache-Control","no-cache");
> > //HTTP 1.1
> > > response.setHeader("Pragma","no-cache"); //HTTP
> > 1.0
> > > response.setDateHeader ("Expires", -1); //prevents
> > caching at the proxy
> > > %>
> > >
> > >
> > > Regards.
> > >
> > > Lindsay
> >
> > >  -----Original Message-----
> >
> > > Subject:  [MVC-Programmers] Refreshing pages
> > >
> > > Hi everyone!
> > >
> > > I'm using Struts 1.0 for an internal Web App in my
> > company.  I don't know
> > > how I can always refresh a JSP page.  I don't want
> > the users to see cached
> > > pages (when they click the "back" button or when
> > they are working
> > > offline).
> > > Is there any way to do this?  Please help me.
> > >
> > > Thank you in advance,
> > > Alex.
> >
> > _______________________________________________
> > MVC-Programmers mailing list
> > [EMAIL PROTECTED]
> >
> http://www.netbean.net/mailman/listinfo/mvc-programmers
>
> _________________________________________________________
> 好心分手,上一次流淚,明年今日,孤兒仔...
> 火速下載至In手機鈴聲
> Download the HOTTEST ringtones from Yahoo!
> http://ringtone.yahoo.com.hk
> _______________________________________________
> MVC-Programmers mailing list
> [EMAIL PROTECTED]
> http://www.netbean.net/mailman/listinfo/mvc-programmers
>


_______________________________________________
MVC-Programmers mailing list
[EMAIL PROTECTED]
http://www.netbean.net/mailman/listinfo/mvc-programmers

Reply via email to