Hi all,
I'm trying to call an
applet from a
servlet using
Tomcat 5.0.14. First, I tried to set the response content header to text/html within doGet() to create a page on the fly and reference the applet from there. I put the applet .class file in the same directory as the servlet, but it didn't work. Then, I tried to use RequestDispatcher to locate the applet like this:
My applet was in the same directory as sample.html which references it. And still it didn't work saying "Applet not inited".
Finally, I got it to work using response.sendRedirect() method, but it's not what I want to do because this way I have to store my applet class in a visible directory other than WEB-INF.
Are there any tricks about deploying applets that I'm missing big time?
Any help is highly appreciated.