tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Peng <frank_peng...@yahoo.com>
Subject how to invoke an Applet from a Servlet program?
Date Sun, 18 Jun 2000 17:10:48 GMT
Hi, guys!

In Tomcat, it is no problem to call an applet from a
static page like this:

<html>
...
<applet code="helloworld.class" width=....> </applet>
...
</html>
When I poke this page with a browser, the applet
works.


But I can not load an applet by a servlet program like
this:


doGET {
.....
out.println("<html>");
....
out.println("<applet> code=\"helloworld.class\"
width=...</applet>");
out.println("<html>");
}


I tried to put helloworld.class in directory /classes
and everywhere I can try. The browser just say can not
find class helloworld.

Please help!


Frank Peng.

__________________________________________________
Do You Yahoo!?
Send instant messages with Yahoo! Messenger.
http://im.yahoo.com/

Mime
View raw message