Vikramjit Singh wrote:

-----Original Message-----
From: Eric Noriega [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 1:31 PM
To: [EMAIL PROTECTED]
Subject: Re: Use of Vector


   This is totaly false.  You do need to worry about
threading, if the
variable is static to the class (not instance).

Yups thats true, that when a variable is static, and two threads are
accessing the static variable then the value of the variable can be changed.
But my dear, what i am saying is that in web applications, the container
takes part of the threading issues for you, and where every user has got a
different session for him.

Even a vaiable in the
session could be accessed by two threads.

What exactly do you mean by session could be accessed by two threads?

   Nothing prevents two requests in the same session from accessing the
same variables.  Most browsers will initiate more than one request at a
time, these requests can both access the same variables stored in the
same seesion.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com

Reply via email to