posted 22 years ago
Hi Daniel
Basically an instance of a servlet class (and consequentially a JSP) can handle multiple simultaneous HTTP requests. On receipt of an HTTP request for a URL the Web Container will invoke the appropriate service method (i.e. doGet, doPost() ) on the servlet that is 'listening' on the URL.
The simplest way to ensure that a servlet can handle multiple HTTP requests (i.e. is Thread-safe) is to avoid the use of instance variables defined on the servlet class (except perhaps those which are initialised in the init() method and then never changed!).
HTH
Andy
Andy Bowes<br />SCJP, SCWCD<br />I like deadlines, I love the whoosing noise they make as they go flying past - Douglas Adams