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 prevent the creation of a session in a jsp page and why? What is the difference between include directive & jsp:include action?

560


What is jsp taglib?

516


Which attribute specifies a jsp page that should process any exceptions thrown but not caught in the current page? : Citibank

520


What are the attributes of page directive?

516


What is a session in web?

529






What is jstl used for?

513


How to pass information from jsp to included jsp?

521


mention the three important tags used in the development of jsp bean.

481


What is jsp and asp?

510


What information is needed to create a tcp socket?

513


How will you use jsp el in order to get the http method name?

506


What is difference between include directive and jsp:include action?

491


What are the jsp elements?

456


How can we disable java code or scripting in jsp page?

510


Are dialogue tags necessary?

505