response.setHeader("Expires", "-1");
The one referred above might also work, but this works for sure:
response.setDateHeader("Expires", 0);
--
Kare Nuorteva, Software Engineer
Satama UK Ltd
mobile +44 (0)7989 852 865
http://www.satama.co.uk/
Servlet is having init destroy method, for initialization
and closing.
Is there any similar feature present in JSP - Bean.
For e.g if my bean involves database manipulation. i want to
open connection
objects while initializing and i will have to close all the
connections when
the bean
I have put already a "close database connection" method within the
destroy() method of the servlet but it does not seem to be called by
the webserver.
Hi,
Because You open/close database connection at the wrong place.
You should open the connection just before the transaction and
close it
hello,
I obviously have not wrapped my head around % vs %!. It seems that
all of the declarative (%!) content is collected in one
buffer, and the
rest is collected in another buffer. Is there a way for we to
get the HTML
into the declarative buffer, and have it changed to java code?
Am I
Hi all,
I am a JSP beginner and hope someone can help me to solve a problem.
How to get the exact URL (i.e. http://...) of the current
jsp page? I
have tried the method getRequestURI but I just got the file
path instead of
the URL.
Does anyone know how to solve this?
Really thanks