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
What is the maximum size of byte array in java?
Name few java 8 annotations ?
Is a method a function?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
What is difference between static and abstract class?
What is the driver class?
What does java se mean?
what do you mean by classloader in java?
What is default size of arraylist in java?
What are the drawbacks for singleton class?
What is javac in java?
What does it mean that a class or member is final?
I want to store more than 10 objects in a remote server? Which methodology will follow?
What is the difference between length and length() method in java?
Why are data types important?