Differences between Java Servlet and Portlets

Hello, May anyone let me know the differences between Java Servlet, JavaBeans and Portlets? It seems quite similar to each other... By the way, what are differences between a servlet container and portlet container? Thank you.Charoite
[255 byte] By [softdev20a] at [2007-10-2 14:00:58]
# 1

JavaBeans are totally different from servlets or portlets. JavaBeans can be used in just about any environment.A JavaBean is basically a java class with a no-arg constructor which follows certain naming conventions for its get and set methods.

Servlets can only function in an "web containers" which are provided by application servers which support servlets. The main function of servlets is to process requests (usually http requests) and generate output (usually web pages). They usually perform validation and other processing and then delegate the web page generation to a jsp.

Portlets are similar to servlets but rather than generating an entire web page, their output is relegated to a portion of a page. A single web page may contain the output of several portlets. These portlets can communicate with each other. The portlet container provides the functionality to merge the output of the various portlets and the infastructure required to support the portlets.

Gita_Weinera at 2007-7-13 12:07:47 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...