What is ServletContext() and what is its use?
Answer Posted / srikanth
ServletContext is called web application there would be one servlet context for entire web applicationthe .servlet context is used to get the context parameters specified in web.xml and also get the information of servlet engineand also request dispatcher object.
| Is This Answer Correct ? | 15 Yes | 14 No |
Post New Answer View All Answers
What is the type of method for sending request from http server?
If some new data has entered the database, explain how can a servlet refresh automatically?
What is a generic servlet?
How can you create a session in servlet?
How can we create deadlock situation in servlet?
How can a servlet be used to generate plain text instead of html?
Is servlet a framework?
Explain the difference between a web server and a web container?
How to rectify errors in java servlet while compilation?
Which is better jsp or servlet?
Can we refresh servlet in client and server side automatically?
Describe the phases of servlet lifecycle?
When to use doget() and when dopost()?
Explain the role of dispatcherservlet and contextloaderlistener.
How servlet is created?