What is ServletContext() and what is its use?

Answer Posted / rahul kumar

A servlete context is the directory in which the servlet
are deployed in the web server. Servlet that are executing
in the same server belong to the same context.

Is This Answer Correct ?    18 Yes 31 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I use cookies to store session state on the client?

538


How would you create deadlock on your servlet?

627


The code in a finally clause will never fail to execute, right?

609


How will two or three servlets interact or communicate with each other?

918


What is http servlet? Explain with the help of an example.

581






What are the common methods that are included in the http servlet class?

580


How can we achieve transport layer security for our web application?

573


What is servlet looping or chaining?

662


Can we override destroy method in servlet?

507


What is httpservlet class?

543


What do you mean by filter in servlet?

538


What are the advantages of servlets over traditional cgi?

632


What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?

606


What's the difference between servlets and applets?

565


What is Request Dispatcher?

808