[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: java applet problem
Sudhakar Chandrasekharan wrote:
> You can guess the serverName and portNumber programmatically like so:
> String docBase = this.getDocumentBase().toString();
> int endIndex = docBase.lastIndexOf("/");
> server = new String(docBase.substring(0,endIndex) + "/");
Correct, but in this case, it would return the address of the server in
which the document is located. What I think he is trying to do is
connect to different IP's other than the server from which the applet
is being loaded. So this won't help.
"Linux: the operating system with a CLUE...
Command Line User Environment".
(seen in a posting in comp.software.testing)
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.