This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes refresh check Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "refresh check" Watch "refresh check" New topic
Author

refresh check

kevin schmidt
Ranch Hand

Joined: Aug 24, 2001
Posts: 85
Hi,
I've written a JSP page, but need to know if someone was refreshed or reloaded a page. How can I check to see of someone has reloaded/refreshed their webpage? TIA.
Kevin
PC RE
Greenhorn

Joined: Aug 28, 2001
Posts: 29
where do u want to check this? on the server side or the client side?
-PC RE
kevin schmidt
Ranch Hand

Joined: Aug 24, 2001
Posts: 85
server side
Brian Blesbok
Greenhorn

Joined: Sep 03, 2001
Posts: 9
if the person has refreshed the data, then this will have come from the server, and then the server will be able to know about it... ie: the servlet will be run to do this?!?!?!
Thiru Thangavelu
Ranch Hand

Joined: Aug 29, 2001
Posts: 219
How abt the client side?


Thanks,<br />Thiru<br />[SCJP,SCWCD,SCBCD]
PC RE
Greenhorn

Joined: Aug 28, 2001
Posts: 29
Kevin,
Because of the nature of the browser/HTTP it maynot be possible to send a message back to the server when the user clicks either stop or refresh. Instead the browser closes the socket connection to the server and the server will throw an IOException in such a case and u could detect this....
Not really sure of any other way other than the above.
Let me know how u solved the problem....
Thanks,-PC RE
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: refresh check
 
Similar Threads
reload/refresh
Child windows not getting closed
problem in refreshig a jsp page after a few seconds
How do you get new text to appear each time
Image is not reloading on JSP page refresh