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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session Bean
 
Similar Threads
isIdentical
Amusing...
Different Managed Bean instances
how to handle session in EJB
Session Facade vs Session Bean