Technically no, but actually yes. You are right in saying that an applet can connect to a servlet ONLY if the servlet resides on the server where the applet originated from. However, you could easily make that servlet (from the same server) connect to any other servlet anywhere in the world, get the results and pass them appropriately to your applet. I hope it is clear. Kostas On Sun, 13 Feb 2000, Yu, Meng wrote: > > Hi, > > > > This has bothered me quite a while. I can't find relevant document. Your > > help is highly appreciated. > > > > I have an applet running on the same machine as servlet. I also need to > > access another servlet on another machine from this applet. I use: > > URL listURL = new URL(servletbase + queryString); > > URLConnection listConn = listURL.openConnection(); > > > > and I get exception like > > com.ms.security.SecurityExceptionEX .... cannot cannnect to > > "......." > > > > Do you happen to know how to resolve this? Or applets must stay on same > > machine with servlets? > > > > Thank your, > > > > -Meng > > > > ___________________________________________________________________________ > 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
