Hi,

Here I have a problem: I write a servlet to send a Swing applet to client through 
println,
but the applet's initialization process died with a gray square in browser's window. 
But when
I use View Source to get the source code of the HTML, save it to a file and  open
the file in a browser, here the applet appears!

To make it convenient for you to try, I made a test skeleton in which the servlet 
(SwingTest.java)
has only one method--- doGet and the Swing applet,  HelloSwingApplet, is from Sun's 
Java Tutorial
which only print out a line in the screen using JLable.

I use JDK1.2, JSDK2.1 and server is the one with JSDK2.1.

An interesting thing is that in Netsacpe(no way with IE) if I start the browser's 
JavaConsole
before I come to the servlet, the applet can be brought up .

Any idea will be greatly appreciated.

Fan

HelloSwingApplet.java

SwingTest.java

Reply via email to