File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Clearing the JSP history Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Clearing the JSP history" Watch "Clearing the JSP history" New topic

Clearing the JSP history

Shaik Vali

Joined: Feb 07, 2008
Posts: 22
Hi all Good Morning

I would like the clear the history of html pages in JSP , how cam I do that please give the solution.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

JSP runs on the server and cannot perform client-side tasks.

I'd move this to the HTML/JavaScript forum, but you can't do it with JavaScript either. The browser history is not part of your web app and you have no business trying to muck with it or any other of the user's browser data. As such, there is no means provided for you to be able to do this.

[Asking smart questions] [About Bear] [Books by Bear]
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11778

I am probably not understanding your question.

What I think you are asking for, is if:
  • I visit Hotmail
  • Then I visit JavaRanch
  • Then I visit your JSP page, my history of having been to Hotmail and JavaRanch will both be deleted.
  • Is that correct?

    If so, why would you want to do this?

    Regards, Andrew

    The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
    Bear Bibeault
    Author and ninkuma

    Joined: Jan 10, 2002
    Posts: 63858

    Perhaps if you tell us what you are actually trying to accomplish, someone could suggest a way to achieve it that's actually possible.
    I agree. Here's the link:
    subject: Clearing the JSP history
    It's not a secret anymore!