29-04-2017, 01:28 PM
Applet and a servlet
Applets:
- Applets are applications designed to be transmitted over the network and executed by web browsers compatible with java.
- An applet is a client-side Java program that runs inside a web browser on the client machine.
- An applet can use UI classes such as AWT or Swing.
- applet lifecycle methods: init (), stop (), paint (), start (), destroy ().
Servlets:
- Servlets are CGI-based, analog-to-CGI programs, implemented through a servlet container associated with an HTTP server.
- Servlet is a server-side component that runs on the web server.
- The servlet does not have a user interface.
- Servlet methods: doGet (), doPost ()
Applets:
- Applets are applications designed to be transmitted over the network and executed by web browsers compatible with java.
- An applet is a client-side Java program that runs inside a web browser on the client machine.
- An applet can use UI classes such as AWT or Swing.
- applet lifecycle methods: init (), stop (), paint (), start (), destroy ().
Servlets:
- Servlets are CGI-based, analog-to-CGI programs, implemented through a servlet container associated with an HTTP server.
- Servlet is a server-side component that runs on the web server.
- The servlet does not have a user interface.
- Servlet methods: doGet (), doPost ()