0

I am aware ServletContext is one per webapp per JVM and is used to set attributes that are visible to whole application. But there is also a definition for ServletContext - It provides interface between Container and Servlet. But i didn't understand what this exactly meant.

And also, in the ServletContext interface I noticed methods for adding Servlet, Filters, Listeners. But why is this?

I wanted the role of ServletContext in web container. Can someone please provide the info.

Thanks in Advance.

0 Answers0