🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2729

Applet:getCodeBase().getHost() returns null

#2729
From: Tom Corcoran
Date: Mon, 17 Apr 2000 00:00
18 lines
1100 bytes
In order to communicate between an applet and a servlet, I need to obtain
the value for
getCodeBase().getHost(), yet it returns null.

Here is my sample code:

public class QuoteClientApplet extends Applet
                               implements ActionListener {
public void init() {
    String host = getCodeBase().getHost();


Do I have to have a web server started and if so how do I configure the
default java web server for the applet/servlet if needed.

Thanks
Tom
Technical Details
Message-ID: <YWDK4.5380$sB3.3561@news.indigo.ie>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,33c3731f9a0bcde5,start
X-Google-Attributes: gid1089d0,public
From: "Tom Corcoran" <tom_corc@hotmail.com>
Subject: Applet:getCodeBase().getHost()  returns null
Date: 2000/04/17
Message-ID: <YWDK4.5380$sB3.3561@news.indigo.ie>
X-Deja-AN: 612214867
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-Complaints-To: news@indigo.ie
X-Trace: news.indigo.ie 955976504 194.125.175.198 (Mon, 17 Apr 2000 14:01:44 BST)
Organization: Indigo
NNTP-Posting-Date: Mon, 17 Apr 2000 14:01:44 BST
Newsgroups: borland.public.jbuilder.java.api