tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Brogden <wbrog...@bga.com>
Subject Re: how to invoke an Applet from a Servlet program?
Date Sun, 18 Jun 2000 19:20:19 GMT
The solution is to specify a BASE for relative addressing
that points to the directory where things like applet
classes and images live. The BASE tag goes in the <HEAD>
area.
 <base href="yadddayadda" />

Frank Peng wrote:
> 
> 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/
> 
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org

-- 
WBB - wbrogden@bga.com  Chief Scientist, LANWrights, Inc.
Java Programmer Certification information and mock exam
at  http://www.lanw.com/java/javacert/

Mime
View raw message