If the connection (or other object) is to be shared by the entire application, use the application scope. As always, you must be aware of threading issues because any JSP or servlet can access these objects at any time.
Eric At 08:11 AM 5/24/2002, you wrote: >Hi, > >Does it must use JavaBeans in order to use session among several jsp >files? Is there any simpler solution? > >I want to maintain a persistent database connection in all jsp files. >For example: > >"Create a database object in first jsp file and retrieve it in other jsp >files" > >Regards, > >Mauricio Lin > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>