aspose file tools*
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
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
 
Don't get me started about those stupid light bulbs.
 
subject: Applet using Tomcat