Applet View has a more liberal "sandbox" than a reallife browser.  An applet can
only call the machine that is was downloaded from, but not the client that it was
downloaded too.  Since your machine is both, you are setting up a problem of
which rule overrides the other.  Try serving the applet from another machine, or
having another machine be the client.

DanC

Bo Xu wrote:

> Hi Fernando,
>
> 0
> I can use
> "http://localhost:8080/servlet/MYservlet?...
> in my computer(   I just test it "before now"  :-)   )
>
> 1
>        a    Does your computer have a IP ?
>        b    Did you ever try "http://<your IP>:8080/servlet/ConsultaProducto"
> ?
>        c    In your applet, is there any code which need to enable some
> "Privilege"
>              for IE?
>
> Bo
> Sept.20, 2000
>
> Fernando Orti wrote:
>
> > Hello again.
> > I have developed an applet that calls a Servlet (passing a parameter) and
> > receives data from it.
> > My problem is that, if I use Appletviewer it works, but if I see the HTML
> > page containing the applet
> > I get an error in the Java Console like this:
> >
> > " com.ms.security.SecurityExceptionEx[Contador.ObtenerPlazas]: cannot
> > connect to "localhost" "
> >
> > My servlet is located in my PC, running ServletRunner and the page that
> > calls the applet is in my PC too.
> >
> > Remember, if I use Appletviewer it works, but from Iexplorer doesn�t.
> > I use this URL: http://localhost:8080/servlet/ConsultaProducto
> >
> > Anyone knows why?
> >
> > ___________________________________________________________________________
> > 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

Reply via email to