This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Thread safety Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Thread safety" Watch "Thread safety" New topic

Thread safety

shivam singhal
Ranch Hand

Joined: Jul 15, 2012
Posts: 215

attributes added to request scope are thread safe.. right

what about PARAMETERS added to request scope,,,i think they MUST be thread safe...
what is reality??
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60774

You cannot add parameters to the request.

But yes, you don't need to worry about the parameters, which you only read in any case, being a threading problem.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
shivam singhal
Ranch Hand

Joined: Jul 15, 2012
Posts: 215

thanks bear..
It is sorta covered in the JavaRanch Style Guide.
subject: Thread safety
Similar Threads
Are implicit objects in JSP are thread safe???
MVC Pattern doubt
are request attributes and session attributes thread safe?
request scope is thread safe
Help w/SingleThreadModel