File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes difference between  applet and servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "difference between  applet and servlet" Watch "difference between  applet and servlet" New topic
Author

difference between applet and servlet

ramchander yshetti
Ranch Hand

Joined: Apr 22, 2006
Posts: 97
hai,
please tell me differences between applet and servlet
bye
Pras Tiwari
Ranch Hand

Joined: Nov 07, 2005
Posts: 186
Hi,

Applet:- Applet runs on client side within browser using jre at client machine when its embedded in any webpage requested by client.

Servlet:- Servlet is purely Server Side concept. It runs witin JVM on server side. & After that it transfers response to another servlet or to the client.

This is the basic difference.

Cheers,
Pras


********Deserve Before You Desire********
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

Applets: Java Applets are the cute little components that run within the confines of a web page. Unfortunately, their star has faded in the last decade, as newer client/browser side technologies such as Flash and JavaScripting have provided much of the functionality that was originally delivered by Applets. Nevertheless, there is still a place for Applets in many enterprise architectures that need slightly fatter clients on the browser side.

Servlets: An application server must be capable of handling and responding to requests that come in over the Internet. A Servlet is simply a Java based component that handles web-based requests.

The purpose of a Servlet is to accept and process a web-based request, and subsequently send a response back to the client. Since the client is likely a person surfing the Internet, the response delivered to the client usually takes the form of a web page.

Servlets are popular because they are incredibly easy to code. With only a little bit of a Java background, anyone can code a Servlet and dive head first into the empty pool know as server side development.


-Cameron McKenzie
Nikos Stavros
Ranch Hand

Joined: Feb 24, 2006
Posts: 243

With only a little bit of a Java background, anyone can code a Servlet and dive head first into the empty pool know as server side development.


Im interested to know what you mean by
empty pool


Jesus lives
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

Have you ever jumped head first into an empty pool? It hurts. Don't try it.

Most server side developers are masochists who enjoy the pain.

-Cameron McKenzie
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference between applet and servlet