Michael Coughlan said: > I'm having trouble serving up a fairly simple embedded applet from the > O'reilly Servlet Programming tutorials. > > Tomcat can't seem to find the applet that I request from loginpage.html > using this line of HTML. > <applet CODE="DaytimeApplet" CODEBASE="/" WIDTH=300 HEIGHT=180></applet> > > The HTML page is served just fine, but both IE and Netscape seem to > bring up an empty applet. I see the Sun logo in the browser so I am > assuming it's a Tomcat config issue and not a local client problem.
You're treating an applet as if it was a servlet. An applet is a client java class you want the server to send to the browser's vm. The applet tag is part of html telling the browser what class, and what parameters to use. A servlet is a java class you want the server to execute in its own vm. It looks to me like you're trying to specify an applet as a servlet...which would cause some funny behaviour to be sure. Check out http://java.sun.com/docs/books/tutorial/applet/appletsonly/html.html for proper use of the applet tag. The reason you can't find information on using the applet tag in web.xml is because it doesn't usually belong there. Hope this helps. Rod. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
