create a class to serve the shared data and put it in /common/classes. This way all your webapps will be able to access the same instance.
> -----Original Message----- > From: Lars Preben S. Arnesen [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 07, 2003 7:54 PM > To: Tomcat Users List > Subject: Re: Sharing data between servlets > > > [ nobody ] > > > are they in the same webapp? > > Yes, for now. It might be useful to split them into different webapps > later on. > > > your best best may be to create a singleton which acts as a > datastore and > > both the servlets can access > > Do you have a code example for this? (I'm still a servlet newbie. :) > > -- > Lars Preben > > -- > 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]>
