8.2. JSR 168 comparison to servlets

In the IBM Portlet API, portlets are servlets and extend the HttpServlet class. The IBM Portlet API also implements or extends many of the servlet interfaces including the HttpServletRequest, HttpServletResponse, and HttpSession. The JSP 168 API does not extend or implement any of the Servlet classes or interface. However, JSR 168 portlets are modeled after the servlet specification.

JSR 168 portlets do leverage many features of the Servlet specification including deployment, classloading, life cycle, session management and request dispatching.

Unlike servlets, portlets can only generate markup fragments. The portal server will aggregate all portlets and themes and skins to create the complete page. Portlets ...

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.