>Hi all,
>I have a different servlets which does the different functions such as add,
modify, delete & view. At the end of each function, the session arributes
gets >removed.
>One can try click on the back button of the browser & view the cached
version of pages and also may click on some functional buttons. Since the
all the >session buttons are removed, on click of functional button gives me
the null pointer exception.
>Please suggest me the general approach to handle this kind of scenario.
>Thanks in advance,
>Ashish.
you may point browser not cache docoment
response.setHeader("Cache-Control", "no-cache"); /*http 1.1*/
response.setHeader("Pragma", "no-cache"); /*http 1.0*/
and set expires date
long currentTime = System.currentTimeMillis();
long min = 1*60*1000; /* 1 min */
response.setDateHeader("Expires", currentTime + min);
Yuriy
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html