I coded up a simple
applet and some html with an applet tag and it tested out OK using the applet viewer. But it doesn't do anything (except draw a grey empty box 100x200) when executed from the application server.
For the applicaton server
test, I put the applet tag in the HTML Body of the
JSP page i.e.
<applet code=CatApplet.class height=100 width=200> </applet>
The applet class file is in the same directory as the JSP page. The source for it is:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
import java.net.*;
import java.util.Date;
public class CatApplet extends JApplet
{
public void init ()
{
setBackground(Color.green);
resize (250,100);
}
public void paint (Graphics g)
{
g.drawString ("lets get some cat gui going", 35, 15);
}
}
Why won't my applet run when the applet tags are in the JSP page?