Create JSR 286 Java Portlet - Initialization Parameters

Use to specify the parameters to initialize upon start-up of a standard JSR 286 portlet.

Initialization parameters provide an alternative to JNDI (Java Naming and Directory Interface) variables. Use the initialization parameters instead of JNDI to configure the behavior of all of the different components of the portlet—for example, servlets and other portlets—in a compatible way.

The parameters created here are entered into the portlet.xml file, located in the Application Navigator under <project_name>/Web Content/WEB-INF. You can edit existing parameters or create new ones using the Overview Editor for portlet.xml.

Element Description

New

Click to add an input row to the table of parameters. To edit an input row, double-click it.
  • Name

    Enter the name of the initialization parameter. For example, rowsDisplayed. The name must be unique in the portlet. Use only letters, numbers, and the underscore character.

  • Value

    Enter a default value for the parameter. For example, for rowsDisplayed you might enter 10, meaning the portlet will initially display 10 rows.

  • Description

    Enter a description for the parameter. For example, "Number of portlet rows to display upon initialization." The description is entered into the portlet.xml file where it assists in understanding how to use the parameter.

Remove

Click to remove a selected initialization parameter from the table.

Related Topics

"Introduction to Portlets" in Developing WebCenter Portal Assets and Custom Components with Oracle JDeveloper

"Building Standards-Based Java Portlets Using JSR 286" in Developing WebCenter Portal Assets and Custom Components with Oracle JDeveloper