If you are loading different page after the operation (branch or
node delete whatever) ,you could say document.location.replace("anotherpage.jsp/html")
which will remove the previous URL from the browser history and hence
your browser 'back' button won't load the page again.
Otherwise,you could use response.setHeader("cache-control", "no-cache") to
remove the browser cache and hence the browser 'back' button will re-load
the page with current data.
Hope this Helps ...
with Regards,
rathna.
Wytas wrote:
> Hi,
> I'm having one problem. I made a JSP that displays some kind of tree control of a
> structure in database. When I browse it and delete some branch or node I can press
> back browser's back button some times and then try to access deleted node or
> perform some other operation. I get errors. The question is: how can I make these
> "past" pages expire? Or is there some way to forward to some page that notifies "Do
> not press back button!!!" when back is pressed?
>
> --
> Vytautas Nuobara
> Programmer
> No Magic
> P.O. box 2166, LT-3000, Kaunas
> Phone: +370 7 229424 Fax: +370 7 200536
> Phone: +370 87 66898
> WWW: http://www.nomagic.com
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets