Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to implement a thread-safe jsp page?

Answer Posted / vipin gupta trainer

isThreadSafe sattes that wheather jsp engine can pass
multiple req simultaneously to the page . a value set to
true(default) indicates that a new thread is started and
therfore request are handled simultaneously . ise the jsp
engine can send multiple concurent lient request to the jsp
page . value set to false indicates that jsp engine sends
lient request one at a time to the jsp page .

It is recommended to always use the value tue for the is
threadsafe page directive and handled multithread issue
by avoiding jsp declaration and ensures that all object
used by the page are thread safe.
Syntex
<% page isthreadSafe="true"%>

Is This Answer Correct ?    10 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you delete a cookie within a jsp?

1150


What is jsp taglib?

889


How can you avoid scriptlet code in jsp?

1002


What is the difference between java servlet and jsp?

910


What is jstl?

929


Explain the various scope values for tag.

900


Explain client-side and server-side validation.

874


What is jsp life cycle?

969


What are the different types scripting elements in jsp?

923


Is it possible to share an httpsession between a jsp and ejb? What happens when I change a value in the httpsession from inside an ejb?

914


Why does _jspService() start with an ‘_’ but other lifecycle methods do not?

988


How can I override the jspinit() method within a jsp page?

911


What is the page directive is used to prevent a jsp page from automatically creating a session?

962


Which jsp life cycle is in correct order?

924


What is a session in web?

958