What is Single Threaded Model in Servlets? Explain this
with an example?
Answer Posted / sateesh.b
SingleThreadModel is a taged interface i.e. an interface
with out methods.
If any servlet is implimenting singlethreadmodel interface
that servlet is said be thread safe i.e. for each request
to that servlet one new object will be created in the server
|Is This Answer Correct ?||13 Yes||5 No|
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255
What is api in servlet?
List some life cycle methods of a servlet.
What is the difference between the include() and forward() methods?
What if we pass negative value in load-on-startup?
Tell us something about servletconfig interface.
What is servlet invoker?
Can you send an authentication error from a servlet?
Tell the new features added in servletrequest interface i.e. Servlet 2.4
What is preinitialization of a servlet?
What is the major difference between context parameter and context attribute?
What is the use of httpservletrequestwrapper?
How to upload a file to the server using servlet?
How to find whether a parameter exists in the request object?