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 are the supported platforms by java programming language?
Which is fastest collection in java?
How many bytes is double?
What is the difference between size and length in java?
how do I create a runnable with inheritance? : Java thread
Explain OOPs concept.
What is the difference between array list and vector in java?
Define interface in java?
Can constructor be protected in java?
Can we sort arraylist in java?
What is boolean in java?
What is the difference between static class and normal class?
What is merge sort in java?
How can I right-justify a string?
What are the advantages of arraylist over arrays?