Hello,

I wrote a servlet that returns HTML which embeds a Java2 applet to be
run in the client web browser.
To create the HTML code I use the following code in the doGet
method of the servlet:

out.println("<EMBED type = \"application/x-java-applet;version=1.2.2\" ");
out.println("CODE = \"seco.client.TestApplet.class\" "); //CODEBASE = \".\" ");
out.println("WIDTH=600 HEIGHT=500");
out.println("HEIGHT = 500");
out.println("\tParam1 = \"Directory1\" ");
out.println("\tParam2 = \"Directory2\" ");
out.println("\tParam3 = \"Directory3\" ");
out.println("scriptable = false 
pluginspage=\"http://java.sun.com/products/plugin/1.2.2/plugin-install.html\"> ");
out.println("<NOEMBED>");
out.println("alt=\"Your browser understands the &lt;APPLET&gt; tag but isn't running 
the applet, for some reason.\" ");
out.println("Your browser is completely ignoring the &lt;APPLET&gt; tag!");
out.println("</NOEMBED>");
out.println("</EMBED>");

When I issue a GET request to the servlet the page gets loaded but the applet
does not get initiated (Applet TestApplet notinited). However, when I copy the
produced page source and store it as .html file I can load the applet
without any problems. The applet can therefore not be the problem. What else
could it be???
I am using Netscape 4.7 with java1.2.2 plugin and JWS1.1.3.
I am thankful for any help that directs me out of this mess.

P.S.: I am having troubles with the Java-Console of Netscape which appears
to produce no output whenever using the java1.2.2 plugin. This is not the
case when the plugin gets not loaded? any ideas on that????

Thanks in advance!!

Markus

___________________________________________________________________________
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