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 |
How to delete a cookie in jsp?
Write a Program using Servlet and JDBC for developing online application for displaying the details of Cars owned by the residents in XYZ society. Make necessary assumptions and create appropriate databases.
how to u se in jsp
What is jsp and servlets?
Explain the jsp:setProperty action.
How does el search for an attribute?
How can you make the finally clause not to fail to execute?
Is jsp better than servlet?
What are action tags?
Explain jsp:plugin action?
What is meant by implicit objects and what are they?
Which jsp life cycle is in correct order?