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

What are the elements of jsp?

491


What is session object in jsp?

579


How can multiple submits due to refresh button clicks be prevented?

572


What are context initialization parameters?

557


Can I use javascript on jsp page?

501






How to delete a cookie in jsp?

536


How to include static files in a jsp?

509


Can you use javascript in jsp?

481


What is the difference between servletcontext and pagecontext?

530


Why use of scripting elements in jsp is discouraged?

542


What is session tracking in jsp?

491


What is jsp translation time?

503


What do you mean by context initialization parameters?

488


Mention the implicit objects in a jsp.

541


How run jsp program in netbeans?

492