With Servlets (and JSP), all the work is done on the server side. It is not true that servlets do not have a user interface -- it's just that their user interface is HTML-based. (Typically, the JSPs are used to provide the user interface and the Servlets act as controllers, but when you get to the nitty-gritty, they are the same thing...).
Applets, however, require download time to work. They run in a restricted environment on the local computer -- all processing is done locally. Depending on the machine, this might not be a problem. But I've get a 9-year-old Macintosh Performa 637 running a 33MHz processor and with 16Mb RAM (and a 350 Mb hard drive) that can browse out to the web and view straight HTML no problem -- but just try to get that thing to run an applet.
On the other hand, applets can make use of Swing, and thus have a much more user-friendly UI.
Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Hi Servlet: are meant for generating HTML dynamically. Applet : are meant for Client side interface or can included in HTML page
Why Servlets r not "user Interface" ?
Servelts are not meant for user inteface but one can use servlet to generate HTML user interface.There is no restriction for using this kind of process.But maintaining HTML code inside servlet is difficult.So sun introduced JSP to solve the problem.Generally Servlets are used as Controllers and JSP used as view.(Refer to MVC Architecture if u need more information)
Hope this will help u [ December 20, 2004: Message edited by: Pratap Rana ]