This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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.
Manohar Karamballi
Ranch Hand

Joined: Jul 17, 2001
Posts: 227
Hai Sean!
ValueBean objBean=new ValueBean();
//Set values here
//Keep it in session
Is it the samething that u wnated...
I agree. Here's the link:
subject: Session Bean
It's not a secret anymore!