Show TOC

How to Use the Navigation Tag LibraryLocate this document in the navigation structure

Use

The navigation tag library is designed to enable you to build navigation iViews based on JSP pages, which are deployed to the portal as portal components in a PAR file that contains the JSP page and a portalapp.xml file.

For more information on writing JSP pages for the portal, see Writing JSP Pages .

Referencing the Tag Library

To use navigation tags in a JSP page, do the following:

  1. At the top of the JSP page, add a reference to the tag library:

                         <%@ taglib uri="NavigationTagLibrary" prefix="nav"%>
                      
  2. In the portalapp.xml file:

    1. Add a sharing reference in the <application-config> element:

                                 <property name="SharingReference" 
          value="com.sap.portal.navigation.navigationtaglibrary"/>
                              
    2. Add a reference to the tag library by adding the following property to the <componentprofile> element for the JSP component:

                                 <property name="NavigationTagLibrary"
          value="/SERVICE/com.sap.portal.navigation.navigationtaglibrary/
      taglib/TagLibrary.tld"/>