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


Please Help Members By Posting Answers For Below Questions

What is passing by reference in java?

543


What is the difference between numeric and integer?

513


What is stringbuffer in java?

542


How do you create an array in java?

536


how to split string in java?

656






Why should I use abstract class?

570


What is the main difference between java platform and other platforms?

508


What is the purpose of java?

558


What does percent mean in java?

590


Can we have 2 main methods in java class?

543


What is arraylist e?

559


How do you sort an array in java?

543


When object is created and destroyed?

640


What is the driver class?

567


What is entry set in java?

539