Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When should one use applets and when should one use servlets?

applets servlets
0
Posted

When should one use applets and when should one use servlets?

0

Location: http://www.jguru.com/faq/view.jsp?EID=64403 Created: Jun 3, 2000 Modified: 2000-06-03 22:44:09.3 Author: Alex Chaffee (http://www.jguru.com/guru/viewbio.jsp?EID=3) Question originally posed by swati m (http://www.jguru.com/guru/viewbio.jsp?EID=64343 Applets run inside browsers, and servlets run inside servers. So broadly speaking, use applets when you need dynamism on the client side, and use servlets when you need dynamism on the server side. Servlets can produce any HTML (or indeed, any file type), and therefore are much more versatile than applets. Servlets can tailor the HTML they produce based on the browser type (as specified in the “User-Agent” header), and thus can produce output that will work in virtually any client, including WAP browsers or the like. Applets are notoriously poorly supported, and even in browsers that ostensibly have Java support, don’t work consistently. Servlets can also produce HTML with embedded JavaScript, which allows a fair amount of dynamic

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123