This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes jsp/servlet/beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "jsp/servlet/beans" Watch "jsp/servlet/beans" New topic
Author

jsp/servlet/beans

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hello!
sorry, my question is going to be a little confusing
i have jsp, servlets, beans, and some other classes(session ejb
but never mind). firstly, servlet creates a bean_1 then the bean_1 creates an ejb(obj1), the bean_1 is used by .jsp. then the servlet creates a bean_2 and what i need is to have the same ejb object(obj1) in the bean_2 as i had in the bean_1. i'm going to send HttpSession or HttpRequest from servlet to constructors for the both beans, so that i could use session.setAttribute("obj1", obj1) in the bean_1 and session.getAttribute("obj1") in the bean_2. but it seems to me not really nice to put HttpRequest objects in beans. if somebody can understand what i mean here
and suggest some solution i would be just happy
 
jQuery in Action, 2nd edition
 
subject: jsp/servlet/beans
 
Similar Threads
EJB's @@
anybody got ques. on gridbaglayout in exam
Favorite Movie
Who love Perl here?
Sending data from one servlet to another..