When should one use applets and when should one use servlets?
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