Home Tutorial Jsp Page Directive attribute - isThreadSafe

 
 

Page Directive attribute - isThreadSafe
Posted on: November 29, 2012 at 12:00 AM
Advertisement
This tutorial contains description of isThreadSafe attribute of page Directive.

Page Directive attribute - isThreadSafe

This tutorial  contains description of isThreadSafe attribute of page Directive.

isThreadSafe Attribute :

isThreadSafe attribute is one of attribute of page directives. It is used at the beginning of the JSP page. This attribute defines the behavior of threads. It specifies that the thread is safe or not. It represents the way that a web server dispatches the multiple client request. It is of boolean type so returns true or false value. Default value of this attribute is true. That means that the web container can dispatch the multiple client request to the JSP page. the false value shows that the web container can dispatch only one request at a time.

Syntax :

<%@ page isThreadSafe="true" %>

Example :

<%@page isThreadSafe="true"%>
<html>
<head>
<title>isThreadSafe attribute.</title>
</head>
<body>

<font color="violet" size="5"> isThreadSafe attribute example of page directive.</font>

</body>
</html>

Output :

Advertisement

Related Tags for Page Directive attribute - isThreadSafe:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: November 29, 2012

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com