tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Peng <frank_peng...@yahoo.com>
Subject Re: how to invoke an Applet from a Servlet program?
Date Mon, 19 Jun 2000 00:07:15 GMT
Thank you Willian, it works!


--- William Brogden <wbrogden@bga.com> wrote:
> 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/
> 
>
--------------------------------------------------------------------------
> To unsubscribe, email:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email:
> tomcat-user-help@jakarta.apache.org
> 


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

Mime
View raw message