Is JSP Thread Safe ???? How To make JSP thrad safe ?????

Answer Posted / samba

By default JSP pages are not Thread safe.if we want to make
jsp page as thread sefe then the value of isThreadSafe
attribute is set to false, then the JSP container sends
client requests only one at a time to the JSP page which
makes the jsp page safe.
If isThreadSafe="true" then jsp is not a thread safe.this is
the default value.
If isThreadSafe="false" then jsp is a thread safe

Syntax:
<%@ page isThreadSafe="true|false" %>

Is This Answer Correct ?    30 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you find out what client machine is making a request to your servlet

534


When Servlet is unloaded?

632


What are the disadvantages of storing session state in cookies?

631


Explain the difference between jsp and servlet?

592


How does tomcat servlet container work?

594






What are different ways for servlet authentication?

569


How can you run a servlet program?

603


What do you mean by filter in servlet?

538


What is life cycle of Servlet?

609


What do you mean by mime type?

556


How does Cookies work in Servlets?

653


What are some disadvantages of storing session state in cookies?

593


What are the kinds of http requests?

611


What do you mean by session tracking and also explain its techniques?

504


What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

619