Deployment descriptors

Each portlet application requires two deployment descriptors:

The following topics describe the deployment descriptors of a portlet application:


Web application deployment descriptor

This section describes the required elements of the web.xml for IBM and standard portlets. For more information about the web application deployment descriptor, see the Java Servlet Specification Version 2.3.
Web application descriptor for standard portlets

IBM web application descriptor

Table 1. The href attribute in the portlet.xml and web.xml files

portlet.xml web.xml
  <portlet id="Portlet_1"
           href="WEB-INF/web.xml#Servlet_1">
    <portlet-name>Mail</portlet-name>
    ...
  </portlet>

  <servlet
    id="Servlet_1">
    <servlet-name>MailPortlet</servlet-name>
    ...
  </servlet>

  <portlet id="Portlet_2"
           href="WEB-INF/web.xml#Servlet_2">
    <portlet-name>Calendar</portlet-name>
    ...
  </portlet>

  <servlet
    id="Servlet_2">
    <servlet-name>CalendarPortlet</servlet-name>
    ...
  </servlet>


Portlet deployment descriptor

This section describes the portlet.xml for standard and IBM portlets.

Guidelines for portlet application identifiers

Standard portlet deployment descriptor


IBM portlet deployment descriptor

Table 2. The href attribute in the portlet tag and the concrete portlet tag

Portlet tag Concrete portlet tag
  <portlet id="Portlet_1"
           href="WEB-INF/web.xml#Servlet_1">
    <portlet-name>Mail</portlet-name>
    ...
  </portlet>

  <concrete-portlet href="#Portlet_1">
    <portlet-name>Mail Box</portlet-name>
    ...
  </concrete-portlet>

  <portlet id="Portlet_2"
           href="WEB-INF/web.xml#Servlet_2">
    <portlet-name>Calendar</portlet-name>
    ...
  </portlet>

  <concrete-portlet href="#Portlet_2">
    <portlet-name>Group calendar</portlet-name>
    ...
  </concrete-portlet>


Reserved parameter names

This section describes parameters that can be set for portlets. There are two types of parameters:
Configuration parameters


Initialization parameters

The following parameters can be set as configuration parameters in IBM portlets or initialization parameters in standard portlets:

redirect.action.without.session = (false)

wps.enforce.redirect = (false)

wps.markup

com.ibm.portal.automaximize

wps.multiple.action.execution

The following parameters can be set as configuration parameters in IBM portlets or read-only preferences in standard portlets:

parallel = (false)

com.ibm.portal.pagecontext.enable = (false)


Container run time options

The portal defines container run time options which can be used by portlets that conform to the Java Portlet Specification 2.0 (JSR286). You set these parameters by using the <container-runtime-option> element in the portlet.xml.
com.ibm.portal.public.session


Parent

Portlet development reference
Markup guidelines
Access the portlet session on the anonymous page
IBM portlet DTD tag reference
JSP tags for standard portlets
JSP tags for IBM portlets
Drag and drop JSP tags reference
Handling and visibility of request parameters in portlets
Detailed descriptions of the Struts WML tags
Application extension registry

 


+

Search Tips   |   Advanced Search