Difference between a JavaBean from a Servlet

List out difference between a JavaBean from a Servlet?

- Servlets are java based analog to CGI programs, implemented by means of a servlet container associated with an HTTP server.

- Servlets run on the server side.

- Beans are reusable code components written in java that one can use in a variety of programming environments.

- JavaBeans are to java what ActiveX controls are to Microsoft.

- Javabeans can run on server side, client side, within an applet etc. So, both have nothing in common except Java.
How servlets differ from RMI
Servlet and RMI - RMI (Remote Method Invocation) are a means of client server communication. In this, the client invokes a method on the server machine..
Servlet servlet mapping - Define servlet mapping.
Servlet servlet mapping - Servlet mapping controls how you access a servlet. It is recommended that you don’t use absolute URLs. Instead usage of relative URLs should be done...
What is Java Servlet?
A servlet is a java class / a program that is a server side component and runs in web container.....
Post your comment