Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can I get the request object in managed bean?

 
peter tong
Ranch Hand
Posts: 246
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic