Muti-Threaded behaviour of JSP and Associated Class Objects

Hi,

I have a question , we knows that JSP (servlets at run time) often runs in muti threaded environment, each time the client makes a new call then a new thread generates for that by server, but my question is if JSP is using the explicit objects (like any imported class), then, will server create new instance of associated class抯 object for each call or share the already created instances of associated classes or associated classes (bind with JSP) are also runs in muti threading with JSP?

In other case when JSP/Servlets not runs in muti threaded environment then server will also generates the associated class objects with JSP when received any new client抯 calls.

I think you got my question..

Regards

Kashif Bashir

[762 byte] By [kashif-bashira] at [2007-10-3 9:19:42]
# 1

you could know that by just putting a "out.println(this.toString());" in any jsp and call it a few time

BTW i'have no idea of the response, my guess would be there's a new instance on each request, or a pool of instances

would likte to know, cause right now i'm too lazy to make the test or read the specs

alban.maillerea at 2007-7-15 4:32:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Hi,genrally middle tier servelet genarates thread for each request...after your jsp is ThreadSafe or not depends , it statrts the execution..naveen.m
java_marthona at 2007-7-15 4:32:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...