File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can I get the request object in managed bean?

 
peter tong
Ranch Hand
Posts: 245
  • 0
  • 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
  • 0
  • 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
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic