Meaningless Drivel is fun!*
The moose likes Applets and the fly likes Applet using Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet using Tomcat" Watch "Applet using Tomcat" New topic
Author

Applet using Tomcat

Graziani Gabriele
Greenhorn

Joined: Dec 06, 2003
Posts: 15
Hi, i've done an applet and i've insert the applet html tag in a servlet class.
When i try my applet in a browser it works as well,
but when i try it under tomcat it doesn't work: "load applet-name not found".
Another thing i've noted is that java compiler of jdk_sdk1.3 compile the applets even creating a .java~ file and the browser run it correctly.
When i try to compile it with the jdk_sdk1.4 the compiler produce only a .class file but the browser don't load it.
Why?
Thanks,Gabri
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Try giving the full path in codebase from the context.

<jsp lugin type="applet"
code="abc.class"
codebase="/SP/src/com/sp/"
name="applet"
archive="archiveURI"
align="middle"
height="370"
width="600"
>
<jsp:fallback>problem with plugin</jsp:fallback>
</jsp lugin>
Graziani Gabriele
Greenhorn

Joined: Dec 06, 2003
Posts: 15
Thank you very much for reply, in fact it works with a base-tag.
Have u idea about the difference beetween the compilers?
Thanks
Gabriele
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Applet using Tomcat
 
Similar Threads
Can applet be part of webpplication ?
Load:class name not found
applet not showing in browser
Applet with Tomcat
Tomcat, JSP and Applet