What is Servlet Context?

Answers were Sorted based on User's Feedback



What is Servlet Context?..

Answer / shakir khan

servlet Context is an object that contain a servlet view of
the web application with in which the servlet is
running.Using the context,a servlet can log events obtain
url references to resources and get and store attributes
that other servlets in the context can use

Is This Answer Correct ?    23 Yes 10 No

What is Servlet Context?..

Answer / neha

ServlrtCoctext provides runtime environment which is shared
by every servlet.

Is This Answer Correct ?    10 Yes 1 No

What is Servlet Context?..

Answer / santhos

Servlet Context is a runtime environment whoch is used for
Servlet Communication.
Servlet COmmunications are three types.
..through...
1. Context Parameters
2. Servlet Context
3. HTTP Session

Through Servlet Context, servlets can communicate. Any
servlet can set attributes to the servlet conext and thy
can be read by any servlet.

Is This Answer Correct ?    6 Yes 1 No

What is Servlet Context?..

Answer / gaurav agrawal

ServletContext is the interface by which we can get the
information of the web container.this interface has some
methods by which we can get information

Is This Answer Correct ?    12 Yes 12 No

What is Servlet Context?..

Answer / diksha sharma

ServletContext is the runtime enrollment for web application.
It contains all the information regarding web application .So
it can be access by all resources. one web application will be having one ServletContext.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Servlets Interview Questions

How to work with Chinese login page (internationalization).if he enters user name and password in chinese, how is it converted to English and validate in db? And in reverse it should display welcome message in Chinese,if user is valid

4 Answers   Bosch,


Which is the methods of generated servlet?

0 Answers  


What is the use of request dispatcher interface?

0 Answers  


Write a servlet to upload file on server.

0 Answers  


Explain the working of service() method of a servlet.

0 Answers  






how many jsp scripting elements are there and what are those?

0 Answers  


What are the methods in HttpSession and their use?

3 Answers  


why business logic written using servlets not in jsp. Jsp used for presentation purpose. serlvet used for coding business logic and controller logic. Reason for using servlets in business logic.

5 Answers  


what is servlet chaining?

0 Answers  


What is difference between PrintWriter and ServletOutputStream?

0 Answers  


How we can get ip address of client in servlet?

0 Answers  


what is the difference between do get/dopost

9 Answers  


Categories