I have a jsp page that opens a database connection as part of its logic. The last part of the page destoys the connection. I've noticed that hitting stop on the client causes the jsp page to stop loading and a connection is left open on the server.

Govind Seshadri

Answer by Alessandro A. Garbagnati Re: Client/Server Communication - JSP Execution When the client hits stop on the browser, the http connection is broken and you probably have an IOException on the servlet side. Eventually you can put the code for closing the database connection in the exception handler, or, better, in the finally of the try/catch.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact