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

Thanks,
Seenu

Answer Posted / nehru

Accroding to java documention, default value for jsp page
attribute 'isThreadsafe', is set to true, which means jsp
can handle multiple client requests and does not implement
SingleThreadModel interface.

Well, thinking gramatically, meaning of 'isThreadsafe' is to
clarify or to assert whether jsp is threadsafe or not.
So it makes sense when you put it's value to true ie.
isThreadsafe = true, meaning jsp is now thread safe and so
should handle one request at a time ie. it should implement
SingleThreadModel interface.
And isThreadsafe = false implies, jsp is not thread safe and
so it can handle multiple client requests.

Is This Answer Correct ?    20 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the maximum size of byte array in java?

540


Name few java 8 annotations ?

565


Is a method a function?

550


When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?

611


What is difference between static and abstract class?

520






What is the driver class?

567


What does java se mean?

591


what do you mean by classloader in java?

571


What is default size of arraylist in java?

558


What are the drawbacks for singleton class?

520


What is javac in java?

561


What does it mean that a class or member is final?

559


I want to store more than 10 objects in a remote server? Which methodology will follow?

2635


What is the difference between length and length() method in java?

647


Why are data types important?

540