tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: Apache returning different sizes for same request [was Re: Controlling caching / session collision]
Date Mon, 10 Jan 2005 19:29:08 GMT
The code below is a disaster. It creates a variable called result at the 
servlet instance level. This means that 2 concurrent requests to that JSP 
page will cause the page to fail. I didn't read the reast of the code - 
because that line is so evil - that ... well I'm speechless.

Change it to:
<%
         ResultSet result;
%>


-Tim


Brian McEntire wrote:

> Looking at one of the problematic JSP pages, I see (snippets):
> 
> <%!
>         ResultSet result;
> %>
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message