Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in objects scope in JSP

 
Selvaraj Subramanian
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have different scope for the objects(or beans) in JSP's like page,request,session & application. Where these objects are getting stored? Can somebody explain about this?

Thanks in advance,
 
Sergey Tyulkin
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Usually those scopes represented as HashMap objects. Request scope stored in ServletRequest interface implementation, page scope - in the JspPage implementation class (automatically generated by servlet container). Application and Session scope attributes are also stored in appropriate obkjects - ServletContext and HttpSession.
 
Selvaraj Subramanian
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sergey. Any resource explaining more on that will be helpful.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic