Is JSP Thread Safe ???? How To make JSP thrad safe ?????
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / samba
Jsp is not a thread safe.in order to make jsp as a thread
safe there is a attribute that is isThreadSafe="true"
Is This Answer Correct ? | 10 Yes | 6 No |
Answer / nagendra
<% page isThreadSafe="false"%>
Then only jsp become ThreadSafe
Is This Answer Correct ? | 5 Yes | 2 No |
Answer / ankur
BY DEFAULT THE JSP PAGE IS NOT SAFE FROM THREAD . IF YOU WANT TO MAKE SAFE THE JSP PAGE FROM THREAD YOU CAN USE THE STATEMENT
<% page isThreadSafe="false"%> USE BEFORE THE <HEAD>
:- THE JSP BY DEFULT VALUE IS
<%@ page isThreadSafe="true"%> THAT MEAN YOUR JSP PAGE IS NOT THREAD SAFE ...
Is This Answer Correct ? | 3 Yes | 2 No |
Answer / venkat
by default jsp is not thread safe.
if we want to make thread safe jsp use this statement
<%@ page isThreadSafe="true"%>
Is This Answer Correct ? | 2 Yes | 2 No |
Answer / venkat
by default jsp is not thread safe.
if we want to make thread safe jsp use this statement
<%@ page isThreadSafe="true"%>
Is This Answer Correct ? | 1 Yes | 4 No |
What do you mean by interservlet communication?
Why do we have servlet filters?
Why do we need servlet filter?
What are life cycle methods of a servlet?
Can we use servlets in JavaScript?
i need connection pooling code.....from harpreet.your@gmail.com
How can you start a jta transaction from a servlet deployed on jboss?
what is a session object?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
if u havea .class file ,how can u say whether it is servlet or not ,dont use java decompliler
explain the advantages of servlet life cycle?
Which event is fired at the time of project deployment and undeployment?