Terminate a jsp page on exit in browser
843838Jul 12 2007 — edited Jul 13 2007I have a jsp page that reads from an excel file as a database. I have it sleep everytime it finish reading a row and prints it out. I do this to make it a really long task.
My problem is when i exit my jsp page on a browser it seem like the page is still running and reading the file. Either the jsp page is or Tomcat is, but all i know I can't delete the excel file once I exit the jsp page.
I can however wait till the jsp page finish and delete the file but that is not always the case.
My question is, is there a way to terminate the page upon exiting the page or anyway to terminate the page once it is running.
Thank you,
Henry