Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

scope

 
shashank bapat
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I have one bean with request scope. Other with session scope.
Whats the best way to access session scope bean from request scope bean?
I know I can do this by passing arguments to bean. But I would like to know if there is other way w/o having to do this.
Getting hold of request is also enough. As it gives me session using getSession().
Thanks
Shashank
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic