What is Single Threaded Model in Servlets? Explain this
with an example?
Answer Posted / yuvraj singh
SingleThreadModel is a marker interface. It is used to ensure that servlet handle only one request at a time.
Servlets can implement SingleThreadModel interface to inform the container that it should make sure that only one thread is executing the servlet’s service() method at any given moment.
Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Which HTTP method is non-idempotent?
Explain is servlet mapping?
How do I support both get and post from the same servlet?
How will you pass values from HTML page to the servlet?
What are some disadvantages of storing session state in cookies?
What is the disadvantage of cookies?
What are common tasks performed by Servlet Container?
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 is servlet initializer?
How can we refresh automatically when new data has entered the database?
What are the new features added to servlet 2.5?
What is the difference between get and post methods?
What is the functionality of actionservlet and requestprocessor?
Why session tracking is needed?
What is the use of request dispatcher interface?