What is Single Threaded Model in Servlets? Explain this
with an example?
Answer Posted / rajkumar
In Single Thread model multiple instances of Servlet class
is Created for every request and in MultiThread model thread
instance is created for every request.
Single thread model is used in case code safety.Performance
fo server is degraded when we use single thread as it
creates Servlet instance for every request where server
gives fast response in multi thread model.
Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
Which interface must be implemented by all servlets?
What is the disadvantage of cookies?
Name the different ways of session tracking.
Explain servlet events?
What is a web application and what is it’s directory structure?
What are the differences between forward() method and sendredirect() methods?
How do you run a servlet?
Why filter is used in servlet?
What is servlet configuration?
What mechanisms are used by a Servlet Container to maintain session information?
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 >>
How do you invoke a servelt?
What is life cycle of Servlet?
Whats the advantages using servlets over using CGI?
How to generate the server side programming and the advantages of it over the other languages?