conPool created in try block is not visible in finally block.
> -----Original Message-----
> From: Janno Kusman [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, May 29, 1999 9:30 PM
> To: [EMAIL PROTECTED]
> Subject: sendRedirect in try{} catch{} block
>
>
> in JavaWebServer1.1.3
>
> try{
> Connection con = conPool.getConnection();
> Stament stmt = con.createStament;
> Resultset rs = stmt.executeQuery("SQL STATMENT");
> HttpServletResponse.sendRedirect("to another servlet");
> }
> catch (Exception e){
> HttpServletResponse.sendRedirect("to error servlet");
> }
> finally{
> conPool.releaseConnection(con);
> }
>
> finally block is not never executed. Is this bug or feature ?
>
> Janno Kusman
>
> ______________________________________________________________
> _____________
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
