It is normal that one servlet is used for several requests. It's your responsability to write the method thread safe. As long as you just use local vars inside the method there will bo no intermixed content. As soon as you start to use instance or class variables you may get problems.
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 03, 2004 11:01 AM > To: Tomcat Users List > Subject: Re: tomcat output gets mixed up for different requests > > > So it seems that Tomcat does not spawn a new servlet for a > new request, althought my web.xml file contains: > > > With every client calling the same Method it seems very > likely that the > output is getting mixed up. > > Adding a *synchronized* in front of the doGet() method, makes the > problem disappear, but also makes the Tomcat very slow. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
