Add servlets to the portal

 

+

Search Tips   |   Advanced Search

 

We can add servlets to the portal using the servlet invoker portlet (ServletInvoker). In order to modify this portlet to point to the servlet, take the following steps:

  1. Go to...

    Administration | Portlet Management | Portlets

  2. Find the ServletInvoker portlet. You may do this by browsing the list of available portlets, or by using the Search feature, with "Title starts with" set to "ServletInvoker".

  3. Select the Configure option for the ServletInvoker portlet.

  4. On the configuration page, you will see a section entitled Parameters and Values. You may add the chosen URL to this list by entering "url" in the New parameter box and the URL in the New value box.

  5. If the "url" parameter is already in this list, you may remove it by using "Delete parameter."

  6. If you wish to change the title of the portlet (the default is "ServletInvoker"), select I want to set titles and descriptions. On the following page, select Edit next to the language-specific title you wish to modify, make the changes, then select OK.

  7. Select OK to save changes.

  8. In order to place the portlet on a page:

    1. Return to Home;

    2. Select the page where you wish to deploy this portlet;

    3. Select Edit Page (under Administration);

    4. Select Add Portlet under the column where you wish to see the servlet invoker portlet added;

    5. Select the portlet from the given list; and

    6. Select OK.

The "url" configuration parameter is applied globally to the servlet invoker portlet wherever it is placed in the portal (on any page). If you wish to display more than one servlet on a single page, first copy or clone the portlet using...

Administration | Portlet Management | Portlets

There you may select the portlet from the given list and select the Copy icon.

 

Related information

 

Parent topic:

Using portlet templates