672329 members! Sign up to stay informed.

Sponsored Links


Resources

Enterprise Java
Research Library

Get Java white papers, product information, case studies and webcasts

Web tier: servlets, JSP, Web frameworks Web tier: servlets, JSP, Web frameworks Web tier: servlets, JSP, Web frameworks Messages: 2 Messages: 2 Messages: 2 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

disabling refresh, f5 on a webpage

Posted by: Rayees Afroz Mohammed on June 30, 2006 DIGG
I want to disable refresh and f5 option for few webpages on my webapplication running through servlet and JSP on tomcat server.
Thank you in advance.
  Message #212695 Post reply Post reply Post reply Go to top Go to top Go to top

Re: disabling refresh, f5 on a webpage

Posted by: Kaede Jiang on July 01, 2006 in response to Message #212618
disable F5
you can user javascript

<script language="javascript">
function document.onkeydown()
{
if ( event.keyCode==116)
{
event.keyCode = 0;
event.cancelBubble = true;
return false;
}
}
</script>

i test it in MS IE 6.

  Message #212738 Post reply Post reply Post reply Go to top Go to top Go to top

it worked

Posted by: Rayees Afroz Mohammed on July 02, 2006 in response to Message #212695
thanks. it works.
any idea how to stop ctrl+r??

Recent active threads Recent active threads Recent active threads More More More
Milton 1.5.1 released
Oracle's Bold Plans for Java Bode Well
Pondering About JSR-315, the New Servlet 3.0 Specification
Free Webinar: Identity Bus and the Future of Identity
Sobel edge detection using Java Advanced Imaging
Using Restriction base in WSDL
BugTracker with Twitter Connector and Ajax Workflow Editor
More active threads »
Top posters of the weekTop posters of the weekTop posters of the week
This list contains the members who have made the most posts in all forums over the last 7 days:
  1. Reza Rahman
  2. James Watson
  3. brad mcevoy
  4. Alex Besogonov
  5. Peter Monks
Hot threads Hot threads Hot threads More hot threads More hot threads More hot threads

Object pooling is now a serious performance loss

Brian Goetz continues to lift the lid and peak into the inner workings of Java in Java Urban Performance Legends. In this article he exposes the fallacy behind some of the more common performance myths found in the annals of the JVM.
(92 comments, last posted March 14, 2008)

Beyond Java

Bruce Tate, author of Better, Faster Lighter Java and Bitter EJB has come out with a new book called Beyond Java. Bruce has an epiphany about the future of software development. Does it include Java?
(770 comments, last posted September 23, 2009)

Three forms of AJAX: solid, liquid and gas.

Looks like today AJAX concept have several interpretations. We can distinguish different approaches of AJAX integration. Can they co-exist within the same application? Can we talk about layered AJAX integration?
(68 comments, last posted May 08, 2008)

Design-Time API Promises to make Java more like VB

Artima has published a short article describing the Design-Time API for JavaBeans, which was recently approved as JSR 273. This API promises to bring VB-like ease to Java development, but may face a cultural bias among Java developers who tend to think more in terms of class libraries than components.
(226 comments, last posted February 01, 2010)

Will Sun be that target of a management buyout?

There is plenty of speculation today regarding a potential buyout of Sun Microsystems by Scott McNealy and Silver Lake Partners. How would privatization of Sun affect Java?
(16 comments, last posted May 15, 2009)
More hot threads »

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
Java Solutions
All Content Copyright ©2007 TheServerSide Privacy Policy      Powered by JIVE
Site Map