Trying to get portnumber from an applet running on
Apache. get the port number as -1. This is whether I
use the url with/without the port number-
URL currrentPage = getCodeBase();
String protocol = currrentPage.getProtocol();
String host= currrentPage.getHost();
int port= currrentPage.getPort();
The host comes correctly as- localhost but port
returns as -1.
Thanks
Sanjay
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>