Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to make servlet handle request independently for all users  RSS feed

 
Bharat Dave
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How is this possible?

Here is the servlet page.



 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do not use instance variables in a servlet. Use the request, session or application scopes as appropriate. For something that is user-specific that needs to persist across requests, the session is the appropriate scope.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!