how to make a jsp page threadsafe?

Answers were Sorted based on User's Feedback



how to make a jsp page threadsafe?..

Answer / john

There is an attribute in page directive
element "isThreadSafe", assign false to this, so that the
jsp container sends the client request one at a time to the
jsp page.
<%@page isThreadSafe="false"%>

Is This Answer Correct ?    23 Yes 7 No

how to make a jsp page threadsafe?..

Answer / 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

More JSP Interview Questions

Why do we use expression language in jsp?

1 Answers  


Can I stop jsp execution while in the midst of processing a request?

1 Answers  


What do you know about jsp tags? Explain how you understand the action tag and jsp action elements.

1 Answers  


How do I use comments within a jsp page?

1 Answers  


What is jsp tag?

1 Answers  


What are advantages of jsp over asp, php, pure servlets and others?

1 Answers  


What are the different life-cycle methods?

1 Answers  


What is pagecontext jsp?

1 Answers  


What information is needed to create a tcp socket?

1 Answers  


What is jsp param?

1 Answers  


What are jsp implicit objects?

1 Answers  


mention the three important tags used in the development of jsp bean.

1 Answers  


Categories