Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread Safe objects of jsp  RSS feed

 
Ananda Sen
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Among the built in objects of jsp like request, response, out, session, application, config, pageContext and page which one are thread safe?
 
Ankit Garg
Sheriff
Posts: 9608
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say request, response, out and config are thread safe. config is shared between calls to the JSP but there's no method in the ServletConfig class which might create problems. pageContext itself is thread safe, but not if you set session or application attributes with it...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!