Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Session Bean

 
Sean Casey
Ranch Hand
Posts: 625
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having trouble trying to create a bean in a servlet and then putting it in the session scope. Could someone tell me how to do this. I would be very grateful.
Thanks,
Sean
 
Manohar Karamballi
Ranch Hand
Posts: 227
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai Sean!
Service(request.response)
{
ValueBean objBean=new ValueBean();
//Set values here
//Keep it in session
session.setAttribute("BEAN",objBean)
}
Is it the samething that u wnated...
Rgds
Manohar
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!