Discussions

Web tier: servlets, JSP, Web frameworks: JSP and SingleThreadedModel

  1. JSP and SingleThreadedModel (2 messages)

    Hi All,

    I want to write a thread safe code using JSP.
    Can anyone tell me how to implement SingleThreadedModel in JSP?

    Thanks,
    Srinivas.J
  2. I'm quoting directly from a book:

    "The isThreadSafe attribute is used to indicate whether your JSP page, once it is compiled into a servlet, is capable of responding to multiple simultaneous requests. If not, this attribute should be set to false, as in the following:

    <%@ page isThreadSafe="false" %>

    Good luck!
  3. Thank you very much Gordon Reynolds