Win a copy of Kotlin in Action this week in the Kotlin 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: 9610
37
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...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!