• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cannot Load Applet

 
Ranch Hand
Posts: 40
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is the structure of my application
/app/aaa/aaa.html
/app/aaa/aaa.jsp
/app/bbb/bbb.html
/app/j1.jar
/app/j2.jar

aaa.html is a frameset, one of the frame reference aaa.jsp by:
<frame src="aaa.jsp">
and aaa.jsp load an applet using something like:
<object classid="xxx"
width="0" height="0" id="Xxx"
codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0">
<param name = "code" value = "path/ClassName.class" >
<param name = "codebase" value = "/app" >
<param name = "type" value="application/x-java-applet;jpi-version=1.4.2">
<param name = "archive" value = "j1.jar,j2.jar" >
<comment>
<applet code="path/ClassName.class" archive="j1.jar,j2.jar"
codebase="/app"
src="/app"
height="1"
id="Xxx"
name="Xxx">
</applet>
</comment>
</object>
which working fine.
Now I write another frameset html, bbb.html locate at another direcotry bbb, and bbb.html reference aaa.jsp using:
<frame src="../aaa/aaa.jsp">
but the applet cannot load, why?
Please help, many thanks.
 
Tak Ming Laio
Ranch Hand
Posts: 40
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In fact the applet is loaded properly, I have fix it myself.

aaa.html set a javascript variable point to the loaded applet when <frameset onload>, and later one of the frame load a page ccc.jsp to check this variable to see whether the applet is loaded or not.
When I write bbb.html, I set one of the frame <frame src="ccc.jsp">, so ccc.jsp complains before bbb.html <frameset onload> set the variable. If I set the frame location to ccc.jsp at <frameset onload> after I set the variable, ccc.jsp will not complain.
 
reply
    Bookmark Topic Watch Topic
  • New Topic