Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic