aspose file tools*
The moose likes Servlets and the fly likes Session Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session Bean" Watch "Session Bean" New topic
Author

Session Bean

Sean Casey
Ranch Hand

Joined: Dec 16, 2000
Posts: 625
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

Joined: Jul 17, 2001
Posts: 227
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Session Bean