• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I call an applet from a JSP?

 
Mark Jones
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to call a simple applet from a JSP within Tomcat 5.5. However, when I try and run the JSP, I get the following error:

"java.lang.ClassNotFoundException: orgChart.class"

My code is very simple:-

<applet code="orgChart.class" width=610 height=400>
<param name="nodes" value="10">
<param name="1" value="1|Mary|0|2|0|0">
<param name="2" value="2|John|1|0|3|1">
<param name="3" value="3|Michael|1|6|4|1">
<param name="4" value="4|Paul|1|8|5|1">
<param name="5" value="5|Suzy|1|0|0|1">
<param name="6" value="6|Diane|3|0|7|2">
<param name="7" value="7|Samuel|3|0|9|2">
<param name="8" value="8|Alex|4|0|0|2">
<param name="9" value="9|Jennifer|3|0|10|2">
<param name="10" value="10|Andrew|3|0|0|2">
</applet>

Tried serving the class off a /static folder in the webapp too but to no avail. Any ideas please?

Thanks
Mark
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Applets forum.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are the classes in the same directory as the JSP file? Does it work if you replace the JSP by a static HTML page of the same content?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic