how to make a jsp page threadsafe?

Answer Posted / krishna chowdary garapati

JSP Threadsafe is used to send only one request for
processing.
It implements SingleThreadModel Interface.
In JSP,
The Page dircetive defines an attribute "isThreadSafe"
whose values are true|false.
If the value is set to 'true' the container can send
multiple concurrent requests to the JSP page. The default
value is 'true'
If the value is set to 'false' the container can only send
one request at a time to the JSP page which makes the JSP
ThreadSafe.
SYNTAX:
<%@ page isThreadSafe="true|false" %>

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is out println in jsp?

527


What are the primary differences between the jsp custom tags and java beans?

525


What is the purpose of ?

507


How can we handle exceptions thrown by jsp service method?

488


What is jsp page?

535






Can constructor be used instead of init(), to initialize servlet?

512


What are directives in jsp?

504


How many messaging models do jms provide for and what are they?

544


Is the session object always created on the jsp page, is it possible to disable its creation?

517


What is the jsp:setproperty action?

549


What is pagescope in jsp?

508


What is the page directive is used to prevent a jsp page from automatically creating a session?

558


What is the differences between the jsp custom tags and java beans?

556


What is the jsp:plugin action ?

538


What are context initialization parameters?

568