• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsp/servlet/beans

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic