I have also tried with the applet tag but that didn't work.
Ulf Dittmer wrote:
So the applet tag works OK if the page name ends in ".html", but not if it ends in ".jsp"?
Ulf Dittmer wrote:
It could also indicate that the class file is damaged; this is the exact same file (byte by byte) that works OK within the HTML page?
Ulf Dittmer wrote:
Can you download the class file through the browser manually, and that file then works OK?
marwen Bakkar wrote:
Ulf Dittmer wrote:Can you download the class file through the browser manually, and that file then works OK?
Sorry I don't understand what you mean. Please tell me how to do this and I will try it.
Ulf Dittmer wrote:The class file is accessible through HTTP via a URL like http://localhost:8080/myWebApp/myDir/MyApplet.class, assuming that the HTML page is at http://localhost:8080/myWebApp/myDir/MyApplet.html. If you type that into the browser, then the class file should get downloaded, and you can ascertain whether it is, in fact, a byte-by-byte copy of the file that's on the server.
I removed the servlet that was calling the jsp and I tried accessing the jsp directly http://localhost:8080/Project/test.jsp and it worked?! what does that mean? And does that entail I should not use a servlet everytime I embed an applet in my jsp?
Consider Paul's rocket mass heater. |