I have an Applet embedded in a JSP file. When the JSP is loaded for the first time in IE, the Applet is displayed fine. I have a timer in the JSP that reloads the entire page at an interval of 5 minutes.
But each time it auto refreshes, the Applet is not displayed. I get to view only the gray area. When I view the Java Console, I get to see that the height and width co-ordinates are zero.
In my Java Applet program's start() function, I'm reading the height and width being passed from the Applet tag in the JSP file. Pressing Ctrl + f5 paints the Applet again and solves the problem. What could be done to make the auto refresh work to pick the right co-ordinates.
Thanking in Anticipation.
- Saju Paul
But each time it auto refreshes, the Applet is not displayed. I get to view only the gray area. When I view the Java Console, I get to see that the height and width co-ordinates are zero.
In my Java Applet program's start() function, I'm reading the height and width being passed from the Applet tag in the JSP file. Pressing Ctrl + f5 paints the Applet again and solves the problem. What could be done to make the auto refresh work to pick the right co-ordinates.
Thanking in Anticipation.
- Saju Paul