wood burning stoves 2.0*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Clearing the JSP history" Watch "Clearing the JSP history" New topic
Author

Clearing the JSP history

Shaik Vali
Greenhorn

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.

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

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] [Bear's FrontMan] [About Bear] [Books by Bear]
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11481
    
  94

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
    Marshal

    Joined: Jan 10, 2002
    Posts: 61434
        
      67

    Perhaps if you tell us what you are actually trying to accomplish, someone could suggest a way to achieve it that's actually possible.
     
    Consider Paul's rocket mass heater.
     
    subject: Clearing the JSP history