This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

refresh check

 
kevin schmidt
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
where do u want to check this? on the server side or the client side?
-PC RE
 
kevin schmidt
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
server side
 
Brian Blesbok
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How abt the client side?
 
PC RE
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic