This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Similar Threads
Servlets-Threafing
Thread safe servlets
Which attribute scopes are thread-safe ?
SingleThreadModel
Need Answer