JavaBean location question

Discussion in 'Java' started by aostrik@gmail.com, Jun 13, 2006.

  1. Guest

    Hi,

    I need to have access to Javabean from *.jsp, servlet and back-end
    business classes.
    Currently, I create bean instance on web application startup and add it
    to web application as the attribute:
    getServletContext().setAttribute(bean). Also I store that instance in
    the businness class via setter method: myBusinessObject.setBean(bean).

    Is it a good technique?
    If not what is the common technique for storing this bean?

    Thank you.
    , Jun 13, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andrew Thompson

    Missing JavaBean..

    Andrew Thompson, Jul 7, 2003, in forum: Java
    Replies:
    4
    Views:
    430
    Wendy S
    Jul 7, 2003
  2. A Bag Of Memes

    Re: Use one javabean for each table?

    A Bag Of Memes, Jul 24, 2003, in forum: Java
    Replies:
    0
    Views:
    445
    A Bag Of Memes
    Jul 24, 2003
  3. tom
    Replies:
    0
    Views:
    372
  4. Andy
    Replies:
    0
    Views:
    302
  5. Todd Peterson
    Replies:
    2
    Views:
    502
    Todd Peterson
    Sep 11, 2003
Loading...

Share This Page