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

How can we achieve transport layer security for our web application?

783


What are different ways for servlet authentication?

768


What’s the difference between sendredirect and forward methods

825


Who is responsible for writing a constructor?

1011


What is difference between get and post method?

771


Which event is fired at the time of session creation and destroy?

1108


How is the get () method different from the post() method?

730


How do you run a servlet?

775


What are the differences between servlet context vs servlet config?

815


What are the advantages of Servlet over CGI?

857


Why do we need servlet filter?

776


What are the uses of servlets?

803


Explain the features are in servlet 3?

805


What is the use of java servlet api?

780


What is the purpose of requestdispatcher interface?

818