Is isThreadSafe Needed Here?
No
<%! private int idNum = 0; %>
<% 
synchronized(this) {
String userID = "userID" + idNum;
out.println("Your ID is " + userID + ".");
idNum = idNum + 1; 
}
%>
Totally safe, better performance in 
high traffic environments
45
JSP
www.corewebprogramming.com
Other Attributes of the page 
Directive
session
Lets you choose not to participate in sessions
buffer
Changes min size of buffer used by JspWriter
autoflush
Requires developer to explicitly flush buffer
extends
Changes parent class of generated servlet
errorPage
Designates a page to handle unplanned errors
isErrorPage
Stipulates that page can be used as error page
46
JSP
www.corewebprogramming.com
23




  

Home

About Services Network Support FAQ Order Contact
 

Java Web Hosting

Our partners:Jsp Web Hosting Unlimited Web Hosting Cheapest Web Hosting  Java Web Hosting Web Templates Best Web Templates PHP Mysql Web Hosting Interland Web Hosting Cheap Web Hosting PHP Web Hosting Tomcat Web Hosting Quality Web Hosting Best Web Hosting  Mac Web Hosting 

Lunarwebhost.net  Business web hosting division of Vision Web Hosting Inc. All rights reserved