Re: Cannot load applet on web browser

2007-01-16 Thread Teh Noranis Mohd Aris
Yes, you are correct Mr. David Smith, I was just about to tell this matter. I did not put the LoginApplet.class in the WEB-INF. I choose to use html in the servlet because I would like to upgrade the previous system that was written in cgi. For the moment, I plan to use servlet and will upgrade

Re: Cannot load applet on web browser

2007-01-16 Thread David Smith
I reread the original post and I don't think you are all that far off in your setup. I'll recap a little here just to be sure I'm reading it right: Servlet is located at WEB-INF/classes/AppletLogin.class (I would recommend this be in an official package) Applet is located at myapp/applets/LoginAp

Re: Cannot load applet on web browser

2007-01-16 Thread Teh Noranis Mohd Aris
Thank you for the reply. I already created the LoginApplet.html and embed the LoginApplet.class. Where should I put the files in the tomcat directory? Where should I put the JSP files? How about the WEB-INF file? Please help me! I'm really short of time! Thank you so much. Yours Sincerely,

Re: Cannot load applet on web browser

2007-01-16 Thread Zack Grafton
I totally agree with Vacuum Joe on his point at getting familiar with Tomcat. As well, I believe the applet tag is considered deprecated with most of the newer versions of Java. There is a program in the bin folder under your Java installation directory called HtmlConverter. This program wil

Re: Cannot load applet on web browser

2007-01-15 Thread Vacuum Joe
Oh my. Ok, you need to get some basic familiarity with Tomcat before you leap into that. First, your applet.class file should not be in WEB-INF. Second, don't do this as a servlet. Make a simple static HTML page work, with the applet, first. Disregard WEB-INF entirely. Getting an applet to

Cannot load applet on web browser

2007-01-15 Thread Teh Noranis Mohd Aris
Hi, I have created programs under the following directory: servlet program: jakarta-tomcat-4.1.31/webapps/myapp/WEB-INF/classes/AppletLogin.class applet program: jakarta-tomcat-4.1.31/webapps/myapp/applets/LoginApplet.class deployment descriptor: myapp/WEB-INF/web.xml