File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to run applet in servlet

 
utpal kumar bhowmick
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i can't run applet in servlet.for that what i have to.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17624
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice terse question. What means?
 
Graeme Brown
Ranch Hand
Posts: 193
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Applets run on the client.
Servlets run on the server.
Are you trying to run them both in the same virtual machine? This would not make sense.
Or are you having problems embedding an applet in the HTML output from the servlet?
 
Vikas Aggarwal
Ranch Hand
Posts: 140
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!,
Same way as you run applat in an html. The class file should reside in the webroot directory of the server where you keep all of your htmls. Now in the servlet use the HTML applet tag with code case and the path. The path will the virtual path to you class file like http://www.vikinsa.com/vikinsa/myapplet.class. This will make the applet run. Also the params can be provided as usual.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic