File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes which attribute scopes are thread-safe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "which attribute scopes are thread-safe" Watch "which attribute scopes are thread-safe" New topic

which attribute scopes are thread-safe

Jang byungho

Joined: Feb 24, 2002
Posts: 2
Identify which attribute scopes are thread-safe:
<%@page isThreadSafe='false' %>
Local variables
Instance variables
Class variables
Request attributes
Session attributes
Context attributes
I supposed the answer is:
Local variables
Instance variables
Request attributes
Please correct me if I'm wrong ...

Hi frends
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1873
yes. as u have defined isThreadSafe false it will create new instace of the servlet for each request and so instance variables are also now thread safe along with the other two u listed.
I agree. Here's the link:
subject: which attribute scopes are thread-safe
It's not a secret anymore!