aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
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
Author

which attribute scopes are thread-safe

Jang byungho
Greenhorn

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: 1871
hi,
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.
regards
maulin.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: which attribute scopes are thread-safe