• Post Reply Bookmark Topic Watch Topic
  • New Topic

why can't I get applets on a page returned by a sevlet  RSS feed

 
Declan Conlon
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any one have any ideas why can't I get applets on a page returned by a sevlet. Keep getting applet not found from the browser!??!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is because the browser thinks the origin of the page is the /servlet/whatever directory. All of your HTML page conventions that depend on the HTML file being in the same directory as the applet class files, image files, etc etc. won't work.
Solutions:
1. Use a <base> tag in the head area of the HTML page to define a base location for finding resources such as class files.
or
2. Use absolute URLs everywhere.
Bill

------------------
author of:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!