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 purpose of finalization in java programming?
Can main() method in java can return any data?
what is meant by abstract class?
Why does java have two ways to create child threads?
What modifiers may be used with a top-level class?
Are variables stored in ram?
What is string literal in java?
What is internal iteration in java se 8?
Can I uninstall java?
What do you understand by looping in java? Explain the different types of loops.
how to deploy tomcatserver to weblogic server? write d following steps?
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
What is the difference between logical data independence and physical data independence?
Give us the name of the list layoutmanagers in java?
How many tetrahedral voids are there in bcc?