4.3. Servlets versus portlets

Those coming from a servlet background will find many similarities when first working with portlets. This section will address some of the more important conceptual differences between servlets and portlets. When designing your portlet applications, the most important factor to initially consider is that unlike servlets, portlets are only a small piece of a large presentation.

Servlets have the luxury of knowing they will be the only presentation resource returned to the client at any given time. Portlets, on the other hand, must understand that the presentation resource they return will be aggregated into a larger resource returned to the client. As a result, they are forced to consider constraints such as screen ...

Get IBM Rational Application Developer V6 Portlet Application Development and Portal Tools now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.