How to make servlet thread safe?
Answer Posted / nagababu
implementing SingleThreadModel. If a Servlet class provides
implementation of SingleThread model interface, the web
container creates multiple objects.
| Is This Answer Correct ? | 12 Yes | 7 No |
Post New Answer View All Answers
Can you explain in detail 'javax.servlet' package?
Explain their methods? Tell me their parameter names also have you used threads in servlet?
What are some advantages of storing session state in cookies?
Describe the phases of servlet lifecycle?
Why is httpservlet declared abstract?
Who is responsible for writing a constructor?
Is it possible to have a constructor inside the servlet?
How to get the current httpsession object?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
Servlet is pure java object or not?
What are the types of Session Tracking ?
Can servlet have a constructor ?
How we can create war file in servlet?
What are the jobs performed by servlets?
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 >>