I think u have failed to make some instances thread safe. Just make sure that you
are not declaring "response" or "request" as an instance( global) variable. What
you can do is always pass the "request" and "response" which u get from "doGet" or
"doPost" as parametres for your methods because "request" and "response" that you
get from the "doGet" or "doPost" will always be unique for each servlet request. So
when u need the session or printwriter associated with that request and response,
just do
HttpSesssion = req,getSession(false);
PrintWriter out = res.getWriter();
If you do this within every method you need to play with( just two lines of extra
code for each method), you are gauranteed to get threadsafe values for those items.
Pradeep
Danny Rubis wrote:
> Hey!
>
> We don't see this in WebSphere/NES but that doesn't really prove much. We would
> need
> to try your code or some small representation of the it.
>
> Sans adieu,
> Danny Rubis
>
> Mark Foley wrote:
>
> > Hi All!
> >
> > We are seeing a strange problem with WebSphere/IIS returning data belonging
> > to another connection from our servlet. We are getting a PrintWriter using
> > the HttpServletResponse argument to our doGet() method, but sometimes the
> > output ends up in the browser of another client making a similar request (in
> > this case selecting a search screen, or retrieving a search result list).
> > In these cases the intended recipient receives a blank screen.
> >
> > Can anybody please help? We are not sure if this is a WebSphere/IIS
> > problem, or one seeb in other servlet engines as well.
> >
> > Thanks,
> > Mark Foley
> >
> > ___________________________________________________________________________
> > 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
>
> ___________________________________________________________________________
> 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
___________________________________________________________________________
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