JSP is by default thread safe or not? what is the meaning of
isThreadSafe="true" and isThreadSafe="false". Explain it?

Thanks,
Seenu

Answer Posted / t.kumar

JSP can access by more than one user at the same time. We
can make JSP thread safe by using JSP attribute in directive
page tag. Thread safe JSP can take one request at one time
to processing. In thread safe JSP single instance of JSP
Servlet loaded. By default JSP is not thread safe, we have
to use isThreadSafe attribute of page. When isThreadSafe
attribute set as false, no multiple request send by JSP
engine to handle.

<%@ page isThreadSafe="false" %>

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there a case when finally will not execute?

567


Explain how can you debug the Java code?

591


What is meant by oops concept in java?

508


What is bigger kb or mb?

587


What is string value?

638






Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?

590


What are the advantages of compiled language?

577


How do you find the independent variable?

519


What are the four corner stones of oop?

547


What is the use of object and class classes?

569


Which methods are used during serialization and deserialization process?

551


What is variable and rules of variable?

520


What are static variables and functions?

625


What is the default value of local and global variables?

567


Is oracle java 11 free?

532