Re: le path d'un applet

From: Geoffrey (geoffrey_at_nospam.invalid)
Date: 12/31/03


Date: Wed, 31 Dec 2003 16:09:54 +0100

Take a look at the J2SE API for Applet.
It has a method getCodeBase(). That's the one you want.
Most of the time it's the same as getDocumentBase(), however in the APPLET
tag you can set the CODEBASE to a relative directory to the html file
containing the applet.

-- 
Thank you for any and all help,
Geoffrey
"Peter Bradley" <apvx95@dsl.pipex.com> schreef in bericht
news:3ff2a94b$0$25666$cc9e4d1f@news.dial.pipex.com...
> Bonjour - et votre pardon.  Je ne parle pas bien le francais.  Mais, c'est
> le "codebase" que vous le voulez, non?
>
> Peter
>
> "Francis" <fortier.francis@globetrotter.net> wrote in message
> news:c2bc9cef.0312310046.235c56ec@posting.google.com...
> > Bonjour,
> >
> > j'aimerais savoir si l'un d'entre vous pourrais me dire comment je
> > peut faire pour avoir le path (l'adresse logique sur internet) du
> > fichier .class d'un applet java pendant son exécution.
> >
> > merci
>
>


Relevant Pages

  • Re: importing external package into applet..
    ... >> to specify your external jars.. ... > ..so I have to use CODEBASE if applet ... directory from html file referencing it.. ... they are not obtainable from the CODEBASE. ...
    (comp.lang.java.help)
  • Re: New to Java - quick question on embedding in browser
    ... I can see no obvious reason why it crashes ... I steered you wrong earlier on the 'codebase' attribute ... when I said it was the codebase for the applet classes. ... OBJECT element. ...
    (comp.lang.java.help)
  • Re: Pfad zur Anwendung in Jar bestimmen
    ... So kann ich bei eine Application die CodeBase auf einem beliebigen Rechner/Filesystem sein; bei einem nicht signierten WebStart werden diese Ressourcen üblicherweise mit dem JAR-Files ausgeliefert; bei einem Applet per HTTP vom Server angefordert. ...
    (de.comp.lang.java)
  • Re: Java 1.4.x Applet search directory for JPG files
    ... As soon as I get organised I might write a JSP that allows us to configure the codebase of an applet on my site so we can experiment with it. ... An applet cannot find out what files are in a directoy on a web site unless the server is configured to do a file list. ...
    (comp.lang.java.help)
  • Re: importing external package into applet..
    ... to specify your external jars.. ... they are not obtainable from the CODEBASE. ... other places using the CODEBASE attribute of the applet element. ... (no jar involved.. ...
    (comp.lang.java.help)