• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

incorrect applet url

 
Habib Ghayoumi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have an applet-servlet web application that runs under tomcat 6. In my applets I get base url using line below:

strHost = new String(getCodeBase().getHost());

but I get wrong value. I mean Instead of getting value "http://localhost:8080/DC" I just get value "http://localhost"
How can i solve the problem? Should I edit tomcat configuration file?
Thanks

Habib
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want the code base, why are you appending the "getHost" method call?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic