Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Loading an applet

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I have a JSP page and an applet deployed on a Tomcat server. I want to be able to load the applet on the JSP page. I have the following code to load the applet:



When the codebase is http://localhost/selfservice, the applet loads correctly. But I want to be able to load this applet from browsers that are not on my local machine as well. What should I use as the codebase inorder to enable the loading of the applet from any machine which can load the jsp page. Thank you very much.
 
igwe kalu kalu ogba
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please note that I want the codebase of the applet to be the same directory as the JSP file, that is, the jar file which holds the applet and the jsp page are in the same directory on the tomcat server.
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens if you leave out the codebase="..." parameter? If it's in the same directory as the JSP, it shouldn't be necessary.
What happens if you fill in your actual machine name under which other people can get at your server (as opposed to localhost)?
 
get schwifty. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic