Is JSP Thread Safe ???? How To make JSP thrad safe ?????
Answer Posted / samba
By default JSP pages are not Thread safe.if we want to make
jsp page as thread sefe then the value of isThreadSafe
attribute is set to false, then the JSP container sends
client requests only one at a time to the JSP page which
makes the jsp page safe.
If isThreadSafe="true" then jsp is not a thread safe.this is
the default value.
If isThreadSafe="false" then jsp is a thread safe
Syntax:
<%@ page isThreadSafe="true|false" %>
| Is This Answer Correct ? | 30 Yes | 7 No |
Post New Answer View All Answers
Can you create a deadlock condition on a servlet?
Can we use threads in Servlets?
Difference between get and post in java servlets?
Is it possible to have a constructor inside the servlet?
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?
Who is responsible for writing a constructor?
What is life cycle of Servlet?
What are the mechanisms used by a servlet container for maintaining session information?
Which event is fired at the time of session creation and destroy?
Explain jsessionid and when is it created?
How can we create deadlock situation in servlet?
What is called Scriptlet?
What is dispatcher servlet?
Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!
What is the use of servletconfig interface?