how to make a jsp page threadsafe?
Answers were Sorted based on User's Feedback
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 |
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 |
What does it mean when tags or attributes are said to be deprecated?
List down the major differences between the jsp custom tags and java beans.
What is the full form of jsp?
What are implicit objects in jsp?
What are the implicit, internal el jsp objects and their differences from jsp objects?
What are request and response objects?
How do I use comments within a jsp page?
What is jsp and why is it needed?
How to comment out jsp code?
Why do we use expression language in jsp?
What is use of scriptlet tags in jsp?
What do you know about jsp expression language (jsp expression language – el)?