You are correct. I assumed the servlets were in the same context.
----- Original Message ----- From: "Prabhu, Deepak" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 08, 2002 2:12 PM Subject: Re: communicating directly with a servlet > I don't think this would work as the ServletContext is related to the > servlet container and this will not work if the servlet containers are > different. > > Deepak > > -----Original Message----- > From: Tony LaPaso [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 08, 2002 3:02 PM > To: [EMAIL PROTECTED] > Subject: Re: communicating directly with a servlet > > > Can you put the Hashtable in the context? > > That is, within your servlet, do this: > > getServletContext().setAttribute("MyHashtable", ht); > > Then to retrieve the Hashtable the other servlet calls getAttribute() on its > ServletContext: > > ht = (Hashtable)getServletContext().getAttribute("MyHashtable"); > > > > ----- Original Message ----- > From: "Charles Conover" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, March 08, 2002 1:21 PM > Subject: communicating directly with a servlet > > > > > Is there a way to connect directly with a servlet, except with the doGet > and > > doPost methods? What I am trying to do is share info (specifically the > > contents of a hashtable) between 2 servlets. I could probably create a > Post > > with all the data in parameters, but I was wondering if anyone knew an > > easier way. > > Thanks, > > Chuck > > > > > ___________________________________________________________________________ > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > > of the message "signoff SERVLET-INTEREST". > > > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > > Resources: http://java.sun.com/products/servlet/external-resources.html > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
