This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Applets and the fly likes HTML Vs Applets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
Bookmark "HTML Vs Applets" Watch "HTML Vs Applets" New topic
Author

HTML Vs Applets

Luke Zechariah
Ranch Hand

Joined: Sep 27, 2005
Posts: 120

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

Joined: Mar 28, 2007
Posts: 403
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.

Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42053
    
  64
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.


Ping & DNS - my free Android networking tools app
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

Nothing to do with JSP. Moved to the Applets forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: HTML Vs Applets