servlet context

Good mroning sir

i am not finding a questions answer very satisfactorily

can a web application can have 2 serveltcontext?

if yes under what circumstances?

actaully i was reading the difference in requestdispatcher 's forward()

and servletcontext 's forward() methods. they say that first is for whole application's request and second one is for specific servletcontext.

That lead to some confusion in my mind abt servletcontext in an application.

Will u plz clearify this.

Thanx in advance.

[550 byte] By [chahalkhushwindera] at [2007-11-27 2:15:44]
# 1

Hi,

ServletContext is a way for a web application to communicate with its servlet container (ex. to get MIME type, dispatch requests).

There is only one servlet context per web application in a JVM.

If you defined a web application as distributed, there will be one servlet context for each JVM.

Correct me if I am wrong.

regards,

Daniel

java4every1a at 2007-7-12 2:12:55 > top of Java-index,Other Topics,Fresh Tools...