What is Servlet Context?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do cookies work in servlets?

780


How do we go with database connection and log4j integration in servlet?

891


Explain jsessionid?

785


What is the dispatcher servlet?

713


Tell the new features added in servletrequest interface i.e. Servlet 2.4

792


How do we translate jsp?

760


I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>

2713


List out difference between a JavaBean from a Servlet?

728


What is the difference between forward () and sendredirect () functions in servlet? Explain

736


What if we pass negative value in load-on-startup?

1013


Can we fetch the attributes related to a servlet on a different servlet?

850


How the JSP file will be executed on the Server side?

854


Explain get and post.

845


Name the different ways of session tracking.

752


How do servlets work?

749