A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
JSP
Author
Is pageContext.setAttribute() Thread-safe?
Alec Lee
Ranch Hand
Joined: Jan 28, 2004
Posts: 568
posted
Feb 10, 2006 02:00:00
0
Is setting page scope attribute thru pageContext.setAttribute() a thread-safe operation?
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
I like...
posted
Feb 10, 2006 05:47:00
0
Unless you write code that spawns it's own threads, yes.
PageContext
only exists within the scope of a single request.
Look at JSP.1.8.2 in the
JSP
spec (link in my signature).
[ February 10, 2006: Message edited by: Ben Souther ]
Java API
J2EE API
Servlet Spec
JSP Spec
How to ask a question...
Simple Servlet Examples
jsonf
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56185
13
I like...
posted
Feb 10, 2006 08:00:00
0
Moved to the JSP forum.
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Is pageContext.setAttribute() Thread-safe?
Similar Threads
vetor thread safe?
ActionServlet Thread Safe
thread safe
threadsafe objects
question from the jweb+
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter