What is Single Threaded Model in Servlets? Explain this
with an example?
Answer Posted / nishant
Single thread model is generally not used because it
increases the burden and overhead on the container because
it has to make new instance of the servlet for each and and
every new request.
Sometimes we need to achive the Single thread model in
order to secure our web-application.
| Is This Answer Correct ? | 11 Yes | 3 No |
Post New Answer View All Answers
Explain the role of dispatcherservlet and contextloaderlistener.
What is the difference between encodeRedirectUrl and encodeURL?
What do you mean by filter in servlet?
What is meant by session? Tell me something about httpsession class?
What is the need of servlet filters?
What is servlet invoker?
How does Cookies work in Servlets?
How to get the IP address of client in servlet?
What is the need of session tracking in web application?
How do you deal property files in servlet?
Which are the different ways you can communicate between servlets?
What is the use of request dispatcher interface?
Whether thread can be used in servlets?
How to handle exceptions thrown by application with another servlet?
What is life cycle of Servlet?