# Re: acessing the url from within signed applet

Jeff Nisewanger (jdn@shimmer.eng.sun.com)
Thu, 28 Jan 1999 18:39:08 -0800 (PST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Olivier RODIER: "jdk1.2 Drag and Drop for JApplet"
- Previous message: Alfonso Urdaneta: "acessing the url from within signed applet"
- Maybe in reply to: Alfonso Urdaneta: "acessing the url from within signed applet"

    Date: Thu, 28 Jan 1999 18:39:08 -0800 (PST)

    From: Jeff Nisewanger <jdn@shimmer.eng.sun.com>

    Subject: Re: acessing the url from within signed applet

    To: java-security@java.Sun.COM, aurdaneta@integratedvisions.com

> 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.

I'm told that this is an issue in the current Java plugin
implementation due to limitations in the browser plugin interfaces
it interacts with. The behavior should be the same regardless
of whether the jar is signed or not. You might try adding the
missing component as an applet tag parameter and then accessing it
via the getParameter() method in the Applet class.

Jeff

- Next message: Olivier RODIER: "jdk1.2 Drag and Drop for JApplet"
- Previous message: Alfonso Urdaneta: "acessing the url from within signed applet"
- Maybe in reply to: Alfonso Urdaneta: "acessing the url from within signed applet"