What is ServletContext() and what is its use?
Answer Posted / a,srinivas rao
servletcontext is an object which contains the information
regarding all the servlets that are used in web application.
when ever user first do the deployment of the web
application on the server the web container instantiate a
servlet context object.the information in the servlet
context object is also passed to init method.
| Is This Answer Correct ? | 51 Yes | 20 No |
Post New Answer View All Answers
What is called servlet mapping?
How can the session in servlet be destroyed?
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 >>
What is URL Encoding?
What is the dispatcher servlet?
How do I support both get and post from the same servlet?
What is called Session Tracking?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
What is called Scriptlet?
What is the difference between servlet and filter?
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?
What are the types of Session Tracking ?
How servlets are deployed in java?
Whether we can get deadlock situation in servlets?
Explain the different ways for servlet authentication?