This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to create session object

 
sa sam
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to store bean object in session for that i am using



but when i retrieve o_beanCustomer value from session using



i am getting null value,

so, please tell me how to sore the session value and what's wrong in my code.
 
Davie Lin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should of use session map instead of request map
 
Tim Holloway
Bartender
Posts: 18420
60
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Better yet, you should seriously consider finding a way to do this using POJO techniques without all the convoluted JSF stuff.

The only time I ever do anything like this is when I need a true top-level session object and it can't be a managed bean.

And then I offload the actual manual session object get/put to a utility class so that my core core isn't littered with a lot of explicit javax.faces constructs. That way my code is easier to unit-test offline and I won't get clobbered the next time a new set of framework functions comes out.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!