How ThreadSafe page attribute will be working in Servlet as
well as in JSP?Automatically ThresdSafe is true in JSP so
service method will be destroy in each and every request or
not?so how thresd will handle srevice method?

Answer Posted / abilash

servlet: it must implement SingleThreadModel for thread safe

jsp: isthreadSafe="false"

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by deployment descriptor?

555


Can a jsp be called using a servlet?

582


What do you mean by request dispatcher in servlet? Also explain its methods.

610


How does Cookies work in Servlets?

651


what do you understand by url rewriting?

548






Why filter is used in servlet?

526


What are the differences between forward() method and sendredirect() methods?

550


What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?

603


What is the need of session tracking in web application?

585


Are Servlets Thread Safe? How to achieve thread safety in servlets?

560


What is servlet mapping?

603


What is servlet and how it works?

508


What is called Session Tracking?

601


What's the advantages using servlets than using cgi?

556


What is the use of httpservletrequestwrapper?

592