What is Single Threaded Model in Servlets? Explain this
with an example?
Answer Posted / rajesh r
Hi
The SingleThreadedModel has been deprecated from Servlet
specification due to a performace hit.
Please donot use this in future use Synchronized block if
you really need to protect your Attributes from cuncurrent
access.
Thanks
Rajesh
rajeshr1988@gmail.com
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
How can you push data from an Applet to a Servlet?
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 api in servlet?
What is the type of method for sending request from http server?
how the HTML data stored in web server?
How can we refresh automatically when new data has entered the database?
Explain jsessionid and when is it created?
How can the session in servlet be destroyed?
What is the use of request dispatcher interface?
Name the packages that work with servlet?
What is cookie? Why is cookie used?
How do you design microservices?
What is a deployment descriptor?
What is the use of send redirect () method?
Tell us something about servletcontext interface.