Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 47363 invoked from network); 25 Sep 2000 14:30:03 -0000 Received: from mail5.realtime.net (HELO bga.com) (205.238.128.241) by locus.apache.org with SMTP; 25 Sep 2000 14:30:03 -0000 Received: from bga.com ([205.238.153.56]) by bga.com ; Mon, 25 Sep 2000 09:29:58 -0600 Message-ID: <39CF61E9.A52C263D@bga.com> Date: Mon, 25 Sep 2000 09:32:09 -0500 From: William Brogden Organization: Barely organized X-Mailer: Mozilla 4.61 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: Re: calling an applet from within a servlet. References: <2576E9359572D31183600090273D6BA0AEFCE9@ccc-nt2.ccc.gerbertechnology.com> <39CF52CB.152C5239@rtci.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N A more nearly universal solution is to insert a tag in the section of the page. This tag can specify the URL for locating class files as well as graphics, etc. The cause of the problem is that the browser sees the page as originating at /servlets/whatever and therefore tries that address when requesting class or image files. Matt Goss wrote: > > ashok, > Actually that won't work. You need to put it anywhere under in the > "webapps//" except under the WEB-INF dir. I suggest > using the full URL at first to call it. ie: > you have applet (myapplet.class) under "webapps/mycontext/applets/" > dir, and your servlet (located somewhere under WEB-INF dir) will > pass off an HTML page calling the applet like this: > appletpage > codebase="http://mydomain/mycontext/applets/"> > > > WThompson@gerbertechnology.com wrote: > > > try the servlets directory > > > > -----Original Message----- > > From: ashok v. shah [mailto:ashok_shah25@rediffmail.com] > > Sent: Monday, September 25, 2000 6:14 AM > > To: tomcat-user@jakarta.apache.org > > Subject: calling an applet from within a servlet. > > > > hi there.. > > i am generating an html page with a servelt.. and want that page > > to load an > > applet. but the messge which i am getting is .class file(of the > > applet which > > i am trying to load) not found. i have tried placing that .class > > file in > > many different directories of the java web server but in vain. so > > i would be > > obliged if you can help me out of this problem.. > > waiting for a reply.. > > thanking you. > > ashok > > > > _________________________________________________ > > Get Your Free Email At, http://www.rediffmail.com > > > > For fabulous shopping deals visit: > > http://www.rediff.co.in/shopping/index.html -- WBB - wbrogden@bga.com Chief Scientist, LANWrights, Inc. Java Programmer Certification information and mock exam at http://www.lanw.com/java/javacert/