Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 2071 invoked from network); 4 Oct 2002 14:35:29 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 4 Oct 2002 14:35:29 -0000 Received: (qmail 6905 invoked by uid 97); 4 Oct 2002 14:35:54 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 6888 invoked by uid 97); 4 Oct 2002 14:35:54 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 6876 invoked by uid 98); 4 Oct 2002 14:35:53 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <11EF704D97C1D41186520002B30902C9465A01@mucs001.ect-telecoms.de> From: Barney Hamish To: 'Tomcat Users List' Subject: RE: Sharing an object between servlets Date: Fri, 4 Oct 2002 16:35:04 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Can't you use a session/request scope object? However it's not clear to me why you need to share the variables between the servlets without having them communicate directly. Hamish > -----Original Message----- > From: Vijay Kandy [mailto:VijayK@mailcode.com] > Sent: Friday, October 04, 2002 4:28 PM > To: 'Tomcat Users List' > Subject: Sharing an object between servlets > > > > Dear All, > > We are building a map tool - to draw maps and show some data > on them. Now, I > have this situation. I have a servlet that gets coordinates from the > database and draws the map on its OutputStream (the content > type is set to > png image). There is another servlet (content type is > text/html) that embeds > the URL of the first servlet. This servlet also gets > coordinates from the > database, and populates them over the image so I can do some > image map or > mouseOver() tricks using javascript. I was wondering if there > was a way to > make just one call to the database and share the coordinates > between the > servlets. Right now, I will try any thing! > > Thank you, > Vijay > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: