Archive for JSP

How to make JSP Thread Safe

Tuesday, May 5th, 2009

JSP can access by more than one user at the same time. We can make JSP thread safe by using JSP attribute in directive page tag. Thread safe JSP can take one request at one time to processing. In thread safe JSP single instance of JSP Servlet loaded. By default JSP is not thread safe, we have to use isThreadSafe attribute of page. When isThreadSafe attribute set as false, no multiple request send by JSP engine to handle.

<%@ page isThreadSafe="false" %>
<html>
<head>
....