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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.