8.9. Deployment descriptors

Deployment descriptors provide information to the server about the application. Two deployment descriptors are required for portlets, web.xml and portlet.xml. The web.xml (Web deployment descriptor) will be used to define all non portlet resources. Compared to the IBM portlet API, JSR 168 does not define a servlet so you do not have to define a servlet in the web.xml. Remember that in JSR 168 the portlet do not extend the HttpServlet interface like they do in the IBM API. Therefore portlets are not servlets and are not required to go into the web.xml. You can, however, use this to define other resources. The following items would be set in the web.xml.

  • <description> tag should contain the portlet application description ...

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.