What is ServletContext() and what is its use?
Answer Posted / anjan
Assume that ServletContext is shared momeroy for all
servelts which are existed in a web application,
we can place an object on to the servletcontext, and that
can uses all other servlets which are exited in the web
application.
| Is This Answer Correct ? | 153 Yes | 27 No |
Post New Answer View All Answers
Given the request path below, which are context path, servlet path and path info?
What are the different ways we can maintain state between requests?
What is difference between PrintWriter and ServletOutputStream?
What exactly is a servlet?
How to get the path of servlet in the server?
why we should override only no-agrs init() method.
What is the requirement of servlet config and servlet context implemented and how are they implemented?
Is servlet synchronized?
What is the type of method for sending request from http server?
What is the difference between the servlets and cgi programs?
Write a servlet to upload file on server.
If some new data has entered the database, explain how can a servlet refresh automatically?
What is a servlet context?
Write all the phases defined in servlet life cycle?
What is MIME Type?