Add JSPs to the portal

 

+

Search Tips   |   Advanced Search

 

The JSP Server portlet (JSP Server) allows you to display Java Server Pages (JSPs). In order to modify this portlet to point to the JSP file, take the following steps:

  1. Go to...

    Administration | Portlet Management | Portlets

  2. Find the JSP Server portlet.

    You may do this by browsing the list of available portlets, or by using the Search feature, with "Title starts with" set to "JSP Server".

  3. Select the Configure option for the JSP Server 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 "JSP Server"), 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 JSP Server portlet added;

    5. Select the portlet from the given list; and

    6. Select OK.

Our JSP must be local to the server. Place the JSP file in the WAR file directory associated with the portlet. For example,...

JSPServer.WAR/JSP/very_simple.jsp

You will find the portlet's directory under...

portal_server_root/installedApps/

The path for the example above would be...

/JSP/very_simple.jsp

The "url" configuration parameter is applied globally to the JSP server portlet wherever it is placed in the portal (on any page). If you wish to display more than one JSP file 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