I am writing a programme using Servlet and I have to send a applet to client. So I place the applet tag in the html code in Servlet. However, when I viewed it in browser, it said ClassNotFound Exceptionand in a grey area where I suppose my applet should appear.
My servlet code fragment is as follow:
PrintWriter out = response.getWriter();
"<APPLET CODE=\"TemplateVarApplet.class\" WIDTH=\"300\" HEIGHT=\"300\">"+
I place my TemplateVarApplet.class in the same directory as this servlet code.
(both are in C:\Program Files\Apache Tomcat 4.0\webapps\fyp\WEB-INF\classes)
I have try adding codebase to the applet tag but it still can't work.
How to solve this ClassNotFoundException problem in Applet?
Thanks a lot...^^