Force Reload on JSP Pages?  
Author Message
Emery Z. Balint Jr.





PostPosted: 2003-9-11 5:54:00 Top

java-programmer, Force Reload on JSP Pages? I've noticed this odd behavior when working on my Web application, where if
a JSP page was cache-able then the servlet would never run. I guess this is
normal since the browser assumes the page doesn't change, so it doesn't put
a request in to the server.

But I'm curious. Is there some command or perhaps a server config that would
allow all JSP pages, whether cached or not, to always reload? I hope this
makes sense, if more is required, I'd be glad to explain more. Thanks for
any assistance in advance!

Emery.
/\^/\^/\
Sun Certified Java Programmer
www.websamba.com/javarobotics/
E-stronomy - Astronomical Resources
www.websamba.com/e-stronomy/


 
cs_benny





PostPosted: 2003-9-11 9:56:00 Top

java-programmer >> Force Reload on JSP Pages? Hi,

It seems this behavior related the cached JSP page. Can the
problem be solved by setting all the pages with no-cache by using META
tag?

Benny

"Emery Z. Balint Jr." <email***@***.com> wrote in message news:<A3N7b.83724$email***@***.com>...
> I've noticed this odd behavior when working on my Web application, where if
> a JSP page was cache-able then the servlet would never run. I guess this is
> normal since the browser assumes the page doesn't change, so it doesn't put
> a request in to the server.
>
> But I'm curious. Is there some command or perhaps a server config that would
> allow all JSP pages, whether cached or not, to always reload? I hope this
> makes sense, if more is required, I'd be glad to explain more. Thanks for
> any assistance in advance!
>
> Emery.
> /\^/\^/\
> Sun Certified Java Programmer
> www.websamba.com/javarobotics/
> E-stronomy - Astronomical Resources
> www.websamba.com/e-stronomy/
 
Emery Z. Balint Jr.





PostPosted: 2003-9-12 8:05:00 Top

java-programmer >> Force Reload on JSP Pages? Thanks for the reply, I'll try the meta-tag version. I was using the
following myself in the JSP pages:

response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("Expires", 0);

Emery.
/\^/\^/\
Sun Certified Java Programmer
www.websamba.com/javarobotics/
E-stronomy - Astronomical Resources
www.websamba.com/e-stronomy/


"Benny" <email***@***.com> wrote in message
news:email***@***.com...
> Hi,
>
> It seems this behavior related the cached JSP page. Can the
> problem be solved by setting all the pages with no-cache by using META
> tag?
>
> Benny
>
> "Emery Z. Balint Jr." <email***@***.com> wrote in message
news:<A3N7b.83724$email***@***.com>...
> > I've noticed this odd behavior when working on my Web application, where
if
> > a JSP page was cache-able then the servlet would never run. I guess this
is
> > normal since the browser assumes the page doesn't change, so it doesn't
put
> > a request in to the server.
> >
> > But I'm curious. Is there some command or perhaps a server config that
would
> > allow all JSP pages, whether cached or not, to always reload? I hope
this
> > makes sense, if more is required, I'd be glad to explain more. Thanks
for
> > any assistance in advance!
> >
> > Emery.
> > /\^/\^/\
> > Sun Certified Java Programmer
> > www.websamba.com/javarobotics/
> > E-stronomy - Astronomical Resources
> > www.websamba.com/e-stronomy/