On Mon, 5 Mar 2001, Roseline Arulnayagam wrote:

> 2) Here is my code ...What prevents the applet from loading ???
>
> public void service(ServletRequest req,
[...]
>          out.println("<applet
> 
>code=D:\\Java_Stuff\\jsdk2.1\\examples\\WEB-INF\\servlets\\MainApplet.class></applet>");
>
With this applet tag you probably will end up trying to load an applet
relative to the servlet URL, ie. from
http://where-your-servlet-is/D:\\Java_Stuff\\...\\MainApplet.class

You can either give an applet URL relative to the servlet URL (which you
have done in this cas but probably meant it to be an absolute URL) or
give an absolute URL:
file://D:/Java_Stuff/jsdk2.1/.../MainApplet.class
or perhaps better:
code="MainApplet.class" codebase="file://D:/Java_Stuff/.../servlets"


Regards,
/Kell Sønnichsen
--
>>  Kell Soennichsen, UNI-C, Olof Palmes Alle 38, DK-8200 Aarhus N.  <<
>>  phone: +45 8937 6666 / +45 8937 6674, fax: +45 8937 6677         <<
>>  email: [EMAIL PROTECTED], http://www.uni-c.dk             <<
>>     The two most common elements in the universe are hydrogen     <<
>>     -- and stupidity.                       -- Harlan Ellison     <<

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to