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

Describe servlet?

578


What is the element?

588


What is meant by Servlet? What are the parameters of service method?

598


When a servlet accepts a call from a client, it receives two objects. What are they?

766


What is the directory structure of a war file?

711






request parameter how to find whether a parameter exists in the request object?

572


Explain the difference between servlet and cgi?

609


How many objects of a servlet is created?

791


What are the types of servlets? Explain

672


What is getservletcontext?

550


Explain the differences between jsp and servlet.

544


How the JSP file will be executed on the Server side?

642


What is load-on-startup in servlet?

586


What is life cycle of Servlet?

605


Explain the methods of request dispatcher in servlet?

517