• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTML Vs Applets

 
Luke Zechariah
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Now a days we do not use much java applets in our applications for user interface. I also use HTML, can you please let me know which one is advantageous over the other and in which situation should one consider using HTML over Applets and vice versa.

Thank you for your time.
Luke
 
ujjwal soni
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Luke,

That depends on your criteria. Personally, I prefer HTML based web applications because they are easier, and better supported across multiple browsers. For dynamic stuff in HTML, you need to use AJAX or Flash stuff.

An applet will let you do fancy stuff within the browser, without needing to go back to the server as much (although you can get most of the way there with JavaScript/DOM these days).

Applet startup times are pretty slow; there are also reports that Sun is stepping away from applets in favor of JavaFX. While the libraries will probably never leave java, they will tend to look pretty old and dated- I think that most applets tend to look pretty awful.

I'd definately recommend HTML / Ajax- they will work in more places and on more browsers.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not an either/or proposition (and never was). Applets can supplement HTML pages by doing client-side processing. Animations are a good example of something that's not yet possible using HTML/JavaScript if you want to target most browsers. While it's true that applets have gone out of fashion, they have gained functionality over the last few Java Plugin releases (e.g., the Common DOM API makes it possible to manipulate the page HTML from within an applet), and it's a lot easier to write cross-browser compatible applets than it used to be. Some of the things Sun did for JavaFX also benefit applets.

It's also possible to sign applets which gives them full access to the client machine - something that's not possible with DOM/JavaScript.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing to do with JSP. Moved to the Applets forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic