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
What is Client-Server Computing?
What’s the difference between forward() and sendredirect() methods?
Differentiate between get and post?
Which exception is thrown if the servlet is not initialized properly?
Explain request dispatcher and its methods.
What is the importance of init() method in Servlet ?
How forward () method is different from send redirect () method?
Can we use the constructor, instead of init(), to initialize servlet?
request parameter how to find whether a parameter exists in the request object?
What if you need to span your transaction across multiple servlet invocations?
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 >>
What do you mean by filter in servlet?
What is life cycle of Servlet?
How does java thread pool work?
How do you configure a centralized error handler in servlets?