I thought that applets were only allowed to communicate with the server that
they came from ??
Lee
> -----Original Message-----
> From: Willard Thompson [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, September 20, 2000 8:25 PM
> To: [EMAIL PROTECTED]
> Subject: Anyone know the answer to this problem
>
> See below.......I'm running Java Web Server and unable to get my applet on
> a
> one machine to identify my servlet on a different machine (that has the
> server).
>
> -----Original Message-----
> From: Bo Xu [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 20, 2000 1:43 PM
> To: [EMAIL PROTECTED]
> Subject: Re: IOException
>
>
> Hi Willard,
>
>
> I also met this problem :-)
>
> 0
> a I guess( no, I am sure :-) :-) ) you use IEx.x
> :-)
> b I guess( yes, I am not sure :-) :-) ) you use jsdk2.1 :-)
> when you got this Exception
>
> 1
> from my understanding, this is because: (I use IE5.0)
> wthompson:8080/servlet/Servlet05
> has been changed to:
> wthompson:8080//servlet/Servlet05
>
> Please notice :-) : "/" has been changed to "//" :-) Who does it
> ?
> :-)
> :-)
>
>
> 2
> from my work, with the same applet, I can run
> it in Netscape4.7.
>
>
> 3
> From the email of Jayant Shekhar, if we use
> JServ as servlet engine, we can avoid this
> problem. But the "syntax" is a little bit different,
> it is:
> [
> ...
> new URL("http://www.indnav.com/jserv/pm.servlets.MapServlet");
> ...
> ]
> (
> * This sample code is from the email of Jayant Shekhar to me :-)
> * I am sorry to use it here :-) , but I try to prove that this
> problem
> * is not "always" :-)
> )
>
>
> Does anybody know how to do it if we still want to use
> IE+jsdk2.1 ?
>
>
> Thanks in advance!
>
>
> Bo
> Sept.20, 2000
>
>
>
> Willard Thompson wrote:
>
> > Hello -
> >
> > I get an error while trying to have my applet talk to my servlet. When
> ever
> > I run the simple code below:
> >
> >
> //////////////////////////////////////////////////////////////////////////
> //
> > ///////////////
> >
> > public void actionPerformed(ActionEvent event)
> > {
> > try
> > {
> > URL dataURL = new
> > URL("http://wthompson:8080/servlet/Servlet05");
> > URLConnection connection = dataURL.openConnection();
> >
> > connection.setUseCaches(false);
> > connection.setRequestProperty("Content-Length", "10");
> >
> > BufferedReader in = new BufferedReader(new
> > InputStreamReader(connection.getInputStream()));
> >
> > String line;
> >
> > while((line = in.readLine()) != null)
> > {
> > t.append(line + "\n");
> > }
> > }
> > catch (IOException ioe)
> > {
> > t.append("IOException: " + ioe);
> > }
> > }
> >
> >
> //////////////////////////////////////////////////////////////////////////
> //
> > ///////////////
> >
> > I get the following error: "IOException: java.io.FileNotFoundException:
> > wthompson:8080//servlet/Servlet05". I've tried a great many
> directories.
> As
> > well. There must be something else. Appreciate any help.
> >
> > Sincerely,
> > Willard Thompson
> >
> >
> __________________________________________________________________________
> _
> > 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