wood burning stoves 2.0*
The moose likes JSF and the fly likes can I get the request object in managed bean? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "can I get the request object in managed bean?" Watch "can I get the request object in managed bean?" New topic
Author

can I get the request object in managed bean?

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
as captioned, when I submit a jsf form,
where will the requst go to? can I get
the request object in managed bean?
how to get it in managed bean?
James Greenberg
Greenhorn

Joined: Jul 09, 2008
Posts: 19
When I need something like what you're asking for I do that by setting the corresponding property in the bean manually. Pseudo code for the managed bean:

and before using the session you actually have to set it from your JSP page:
MyBean mb = (MyBean) session.getAttribute( "MyBean" );
mb.setSession( session );

Same applies to other stuff.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16



[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can I get the request object in managed bean?