JSP is by default thread safe or not? what is the meaning of
isThreadSafe="true" and isThreadSafe="false". Explain it?
Thanks,
Seenu
Answer Posted / bijay
<%@ page isThreadSafe="true" %> means you are specifying that the JSP page is thread-safe and hence, Container should create one Servlet instance and use it to handle mulitple client requests.
On the other hand, <%@ page isThreadSafe="false" %> means you are specifying that the JSP page is not thread-safe, so th Container should take necessary precaution. Container does this by queueing up requests and handling them one at a time.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How many types of literals are there in JAVA?
How do I run java on windows?
Explain the importance of join() method in thread class?
Can list be null in java?
What is the public field modifier?
What is string data?
Can you call a method in a method?
what are abstract functions?
Convert a BST into a DLL and DLL to BST in place.
Difference between this() and super() ?
What is the longest unicode character?
What is string subsequence method?
Can you call one constructor from another if a class has multiple constructors?
Can we use different return types for methods when overridden?
What is an empirical question?