File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes REFRESF BROWSER Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "REFRESF BROWSER" Watch "REFRESF BROWSER" New topic
Author

REFRESF BROWSER

sandeep balyan
Ranch Hand

Joined: Jul 25, 2001
Posts: 134
Hello All
Hi thsi time an interesting thing I wanna ask
I want my user not to refresh my Page ..means i do not want him to refresh ..
Iam using JSP /HTML and Oracle
pls tell any soln
bye an dtake care
sandeep


Want to do something great will do one day
Rehan Malik
Ranch Hand

Joined: Jul 09, 2001
Posts: 76
From what I know, you can't prevent a user from pressing the Refresh button.


Rehan Malik
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Well, actually you can remove the button bar entirely using JavaScript on some browsers, but that's going a bit far. Why don't you want the user to refresh their page?
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
sridhar satuloori
Ranch Hand

Joined: Nov 05, 2001
Posts: 144
As kyle said we can use JavaScript to remove (but you can use them through shortcuts. and through context menu) from appearing. But i dont think it will serve your purpose.
one work arround could be... just set some variable in the cookie say xxxreloadable=false for the first time you are accessing xxx page. if the request comes to the same(i.e., xxx) page and xxxreloadable is false, then resend with an error. if its for other page just ignore the reloadable.
Sridhar
Originally posted by sandeep balyan:
Hello All
Hi thsi time an interesting thing I wanna ask
I want my user not to refresh my Page ..means i do not want him to refresh ..
Iam using JSP /HTML and Oracle
pls tell any soln
bye an dtake care
sandeep

 
 
subject: REFRESF BROWSER