Wednesday, July 10, 2002 10:24 AM
Java beans in a web application have a "scope". This scope is either a "request" scope, which last from request to request or "session" scope, which lasts through the whole session.
If you create a bean (using the tag) with a "session" scope, then the bean is available to all pages in that session.
If you create the bean with a "request" scope, then you will get a brand new bean each time you access it.
So, you can create a method on lets say Bean_A which access the database and stores the values in private fields within the bean. You can then have another method which takes the other bean (Bean_B) as a parameter and sets the values needed on Bean_B.
Hope this gives you some idea on how to proceed.