DEVFYI - Developer Resource - FYI

In the Servlet 2.4 specification SingleThreadModel has been deprecated, why?

JSP Interview Questions and Answers


(Continued from previous question...)

18. In the Servlet 2.4 specification SingleThreadModel has been deprecated, why?

Because it is not practical to have such model. Whether you set isThreadSafe to true or false, you should take care of concurrent client requests to the JSP page by synchronizing access to any shared objects defined at the page level.

(Continued on next question...)

Other Interview Questions