Hi,
I'm working on an application that consists of
jsp's a
servlet and some javabeans. The servlet is going to query a database for information that I need to store in a jsp page. I figure the best way to do this would be to have the servlet create a bean and store all the information from the database in it, and then have the mainjsp access the bean. The mainjsp will change as users update it randomly. My question is how do I initialize a bean in the servlet and put the database info into it and which scope would be best for this scenario?
I figured I could just create an instance of the Bean and then use it's set method's to set the information, but then how would i define the scope of the bean?
Thanks for any help.
-Sean
[This message has been edited by Sean Casey (edited September 05, 2001).]