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
How do I compare two strings in word in java?
How to sort an array from smallest to largest java?
Which variables are stored in stack?
What are the two ways of implementing multi-threading in java?
What differences exist between iterator and listiterator?
can I implement my own start() method? : Java thread
Do I need java on my pc?
What is not thread safe?
What is immutable data?
Can we use synchronized block for primitives?
What is a method in coding?
Can you instantiate the math class in Java?
What is a linkedhashmap java?
What is the significance of java packages?
Which command from the jdk compiles a java program?