Is JSP Thread Safe ???? How To make JSP thrad safe ?????

Answer Posted / ankur

BY DEFAULT THE JSP PAGE IS NOT SAFE FROM THREAD . IF YOU WANT TO MAKE SAFE THE JSP PAGE FROM THREAD YOU CAN USE THE STATEMENT

<% page isThreadSafe="false"%> USE BEFORE THE <HEAD>

:- THE JSP BY DEFULT VALUE IS

<%@ page isThreadSafe="true"%> THAT MEAN YOUR JSP PAGE IS NOT THREAD SAFE ...

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is servlet and its advantages?

527


Explain is servlet mapping?

582


Explain the difference between jsp and servlet?

592


How httpservlet is different from the genericservlet?

566


Write all the phases defined in servlet life cycle?

589






What is the difference between jsp and servlet life cycle?

689


Which interface must be implemented by all servlets?

796


hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code

2283


What is the difference between using getSession(true) and getSession(false) methods?

572


How can we create deadlock situation in servlet?

852


What is the use of httpservletresponsewrapper?

534


How to rectify errors in java servlet while compilation?

521


Explain web application directory arrangement?

590


How to get the IP address of client in servlet?

630


What are the functions of Servlet container?

609