# acessing the url from within signed applet

Alfonso Urdaneta (aurdaneta@integratedvisions.com)
Fri, 29 Jan 1999 01:23:34 +0000

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Jeff Nisewanger: "Re: acessing the url from within signed applet"
- Previous message: Yen Liu: "applet socket connection back to server application through firewall."
- Next in thread: Jeff Nisewanger: "Re: acessing the url from within signed applet"

    Date: Fri, 29 Jan 1999 01:23:34 +0000

    From: Alfonso Urdaneta <aurdaneta@integratedvisions.com>

    To: java-security@java.sun.com, aurdaneta@integratedvisions.com

    Subject: acessing the url from within signed applet

Hello,

I'm having difficulty accessing the url from inside an applet.

Say I have an applet which is on the page

http://my.host.com/java/applets/demo.html

If I do a getDocumentBase() or getCodeBase() I get back the url for the
page.

Now if I have a signed applet on that same page, loaded from a signed
jar file, running with the java plug-in, when I do a getDocumentBase()
or getCodeBase() all I get back is

http://my.host.com/java/applets/

My question is, how do I get the complete url ? I'm using servlets to
do url encoding, and the signed jar file precludes me from reading the
complete url.

Regards,

Alfonso.

- Next message: Jeff Nisewanger: "Re: acessing the url from within signed applet"
- Previous message: Yen Liu: "applet socket connection back to server application through firewall."
- Next in thread: Jeff Nisewanger: "Re: acessing the url from within signed applet"