Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Can you create a deadlock condition on a servlet?

1022


Can we use threads in Servlets?

1078


Difference between get and post in java servlets?

975


Is it possible to have a constructor inside the servlet?

953


Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

963


Who is responsible for writing a constructor?

1201


What is life cycle of Servlet?

1020


What are the mechanisms used by a servlet container for maintaining session information?

972


Which event is fired at the time of session creation and destroy?

1319


Explain jsessionid and when is it created?

1044


How can we create deadlock situation in servlet?

1345


What is called Scriptlet?

1054


What is dispatcher servlet?

1008


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!

2262


What is the use of servletconfig interface?

990