----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

You probably need a CODBASE="/the/folder/where/your/applet/lives"
in your <APPLET> tag.
The servlet and the applet are not dependent in any other way, but it is
silly to put your applet in your servlet directory, because servlet is a
mount point, obscuring access to the applet. put the applet in some other
folder.

> -----Original Message-----
> From: Ilana Shay [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 11, 2000 11:22 AM
> To: [EMAIL PROTECTED]
> Subject: Download an applet by a servlet
> 
> Hello,
> 
> I am using Win98 Apache 1.3.6 with Jserv 1.0. In the servlet 
> I tries to
> download an applet by the following lines in 'doGet' function:
> 
> out.println("<HTML>");
> out.println("<BODY>");
> out.println("<APPLET CODE=\"Applet1.class\" WIDTH=426
> HEIGHT=266></APPLET>");
> out.println("</BODY>");
> out.println("</HTML>");
> 
> 
> Applet1.class is located in the root directory where all servlets are
> located:
> C:\Program Files\Apache Group\Apache JServ\servlets.
> 
> When the servlet html page displayed on the client, the 
> Applet1 class is not
> shown, when I move the cursor over the gray area where the 
> applet should
> have be displayed, it shows on the status bar the message:"load: class
> Applet1 not found".
> 
> The Java console displays: "java.lang.ClassNotFoundException: 
> Applet1".
> 
> The server CLASSPATH has . (dot) in it.
> 
> I also tried to add different CODEBASE="Applet1 location" to 
> the command but
> it didn't help.
> 
> Do I miss any APACHE configuration settings?
> 
> Thanks,
> Ilana.
> 
> 
> 
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]
> 


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to