OfficeGoogle
Home
Quizzes
Blog
News
Sign In
Sign Up
Update an article
Title
*
Overview
*
The Page directive of JSP has an attribute isThreadSafe which basically tells the container about the thread-safe behavior of the JSP so that the container can handle the requests to JSP accordingly. It can have two possible values - True or False. By default, isThreadSafe is True.
Content
*
<p>The Page directive of JSP has an attribute isThreadSafe which basically tells the container about the thread-safe behavior of the JSP so that the container can handle the requests to JSP accordingly.</p> <p>It can have two possible values - True or False. By default, isThreadSafe is True. </p> <p>When isThreadSafe = true, it tells the container that the current JSP is thread-safe, meaning, it can handle web requests in a multi-threaded way. Each web request is a handled by a new thread of the JSP Servlet. Hence, caution should be taken if you are handling shared resources within your JSP. You may have to use synchronized block to manage shared resources when isThreadSafe is set to true.</p> <p> </p> <p>When isThreadSafe = false, the container then only handles one request at a time as the JSP is specified to be not thread safe. This option should be used with consideration as it might severly impact the performance since only one request can be catered at one time. </p>
Thumbnail
*
Currently:
isThreadSafe.PNG
Change:
Categories
*
Tech
Salesforce
Life
Social
Finance
FRM
Java-J2EE
PTE
Featured
Previous post
---------
How to resolve 'You have reached the maximum of 10 Trailhead playgrounds' error?
What is meant by isThreadSafe in JSP?
Collection of the best 190 sites for kids education
The best free books of Science and Business
Why boycott Chinese product is not good for India
PTE Speaking (English) - 4 word stress rules to improve pronunciation score
PTE Writing - How to score 90?
Finding frequency of an element in python list
How I prepared for and passed my Salesforce Administrator Certification
Salesforce NPSP Learning resources
OpenJDK8 trustAnchor paramerer must be non empty (unable to connect to repository on eclipse)
Salesforce B2C Commerce Cloud Architecture (Demandware)
Opening password protected pdf file using Python.
Camping Checklist
Daily Finance and Market Update
Next post
---------
How to resolve 'You have reached the maximum of 10 Trailhead playgrounds' error?
What is meant by isThreadSafe in JSP?
Collection of the best 190 sites for kids education
The best free books of Science and Business
Why boycott Chinese product is not good for India
PTE Speaking (English) - 4 word stress rules to improve pronunciation score
PTE Writing - How to score 90?
Finding frequency of an element in python list
How I prepared for and passed my Salesforce Administrator Certification
Salesforce NPSP Learning resources
OpenJDK8 trustAnchor paramerer must be non empty (unable to connect to repository on eclipse)
Salesforce B2C Commerce Cloud Architecture (Demandware)
Opening password protected pdf file using Python.
Camping Checklist
Daily Finance and Market Update
Submit