Huh?

----- Original Message -----
From: "Rohit Parik" <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 9:56 AM


> Not even that ... in case you are typing the url in your browser as
> http://localhost/ .. ur pagename. then just change it by specifying the
port
> number as well and bingo there u go.
>
> ----- Original Message -----
> From: Mark Galbreath
> Sent: Tuesday, April 24, 2001 5:56 PM
>
> Because the applet is now under the SecurityManager domain of your IE web
> browser and you are restricted from accessing anything but an originating
> webserver on port 80.  Try changing your security parameters through the
> browser menu: Tools > Options > Security.
>
> Cheers!
> Mark
>
> ----- Original Message -----
> From: "Vacca Davide" <[EMAIL PROTECTED]>
> Sent: Tuesday, April 24, 2001 6:39 AM
>
>
> > Hello to everybody,
> >
> >    I've written an Applet server communication application (the Applet
> cals the servlet) in Visual Age for Java environment. I've modified the
file
> "java.policy" putting the following line:
> > permission java.net.SocketPermission "localhost:8080-",
> "listen,connect,accept";
> > and everythin work fine when I run the application in the Appletviewer.
> > But when I try to run the Applet in an HTML browser, I get the following
> exception when I try to make the connection with the servlet:
> >
> > com.ms.security.SecurityException(myPackage/myApplet:cannot acces
> "localhost":8080
> >
> > here's the Applet code (in the init method):
> >
> > URL url =
> > new URL(this.getCodeBase(),
> "http://localhost:8080/servlet/myPackage.myServlet";);
> >   URLConnection conn = url.openConnection();
> >   conn.setDoInput(true);
> >   conn.setDoOutput(true);
> >   conn.setUseCaches(false);
> >   conn.setRequestProperty("Content-Type", "pippo");
> >   InputStream in = conn.getInputStream();

___________________________________________________________________________
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