Add JSPs to the portal


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

  1. Go to the Administration page.
  2. Select Portlet Management from the list on the left.
  3. Select Portlets from the options under Portal Management.
  4. 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".
  5. Select the Configure option for the JSP Server portlet.
  6. On the configuration page, you will see a section entitled Parameters and Values. You may add your chosen URL to this list by entering "url" in the New parameter box and your URL in the New value box. Note: if the "url" parameter is already in this list, you may remove it by using "Delete parameter."
  7. 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 your changes, then select OK.
  8. Select OK to save your changes.
  9. In order to place the portlet on a page:

    1. return to My Portal;
    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.

Your JSP must be local to the server. Place your JSP file in the WAR file directory associated with the portlet (for example, JSPSever.WAR/JSP/very_simple.jsp). You will find the portlet's directory under was_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.

 

See also

Home |

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.