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


Please Help Members By Posting Answers For Below Questions

What is Client-Server Computing?

1897


What’s the difference between forward() and sendredirect() methods?

574


Differentiate between get and post?

684


Which exception is thrown if the servlet is not initialized properly?

588


Explain request dispatcher and its methods.

583






What is the importance of init() method in Servlet ?

592


How forward () method is different from send redirect () method?

515


Can we use the constructor, instead of init(), to initialize servlet?

581


request parameter how to find whether a parameter exists in the request object?

572


What if you need to span your transaction across multiple servlet invocations?

579


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 >>

2532


What do you mean by filter in servlet?

538


What is life cycle of Servlet?

605


How does java thread pool work?

546


How do you configure a centralized error handler in servlets?

531