File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes back in browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "back in browser" Watch "back in browser" New topic
Author

back in browser

Vignesh
Greenhorn

Joined: Jun 18, 2001
Posts: 1
hi guys,
i have a simple question.iam developing a site which uses some database connections.and i dont want the user to go back in the browser buttin and traverse round.how can i make the jsp page to expire within the same scope and not allow the user to go back???
thanks in advance
Vignesh.K.C
vikinsa
Ranch Hand

Joined: Apr 18, 2001
Posts: 46
Hi!,
You can use the simple HTML meta tags to expire the page as soon as it gets displayed. After using that the tag will ensure that every time the page is requested it will fetch a new copy from the web server.
I am not very sure about this one but try once...
<META HTTP-EQUIV="Expires" CONTENT="now">
Place in the <head></head> tags of your HTML in that jsp.

Originally posted by Vignesh:
hi guys,
i have a simple question.iam developing a site which uses some database connections.and i dont want the user to go back in the browser buttin and traverse round.how can i make the jsp page to expire within the same scope and not allow the user to go back???
thanks in advance
Vignesh.K.C


------------------
Vikas Aggarwal
Technology Associate
http://www.vikinsa.com


Vikas Aggarwal<BR>Technology Associate<BR>http://www.vikinsa.com
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"Vignesh" and "vikinsa",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
 
subject: back in browser
 
Similar Threads
back button on the browser
remove cache from java code in jsp
Refreshing pages
Sessions
How to track browser back button action in JSP pages