Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java_server thread: Can some body tell me how to write applet code in a servlet


Message #1 by aseem <aseem@o...> on Thu, 21 Sep 2000 13:08:04 +0530
--------------6ABA973824E186B6AB00CF5E
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

hi !
Can some body tell me how to put the applet code in a servlet and
display it in an html page.
well i am  using

pw.println("<html><head><title>applet window</title></head>");
 pw.println("<body><APPLET CODE='appletfinal.class'  width=300
height=300 archive='custom.jar'>");
 pw.println("<param name='file0'  value='abc.mpeg'>");
 pw.println("</APPLET>");
  pw.println("</body></html>");

but this code simply gives me the error that appletfinal class not
found, but i have tried it without servlet , it works fine. Well i have
placed it in the directory servlets in the javawebserver and i also
tried it out with the servletrunner by writing
c:\> servletrunner -d c:\abc
and my servlet is in the abc directory and i know how to run servlets as
i have been running lot many servlets , so putting it in a specific
directory is not a problem.

please send me the help asap

I will be highly Thankful  for the help.

Regards
Aseem




  Return to Index