File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes scope Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "scope" Watch "scope" New topic


shashank bapat
Ranch Hand

Joined: Jul 11, 2001
Posts: 69
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().

I agree. Here's the link:
subject: scope
It's not a secret anymore!