Skip to Content


Due to popular demand, i have decided to post this weblog which shows you how to create a


for your portal.


Jar required:

Step 1:

Create a Dynpage project using NWDS or Eclipse wizard.


Step 2:

Add the following lines of code to your Dynpage component

package com.ust.sitemap;

/* Built By: Prakash Singh

  • Technical Consultant

  • Universal System Technologies, Inc

  • 2500 W. Lake Mary Blvd., Ste 212-A

  • Lake Mary, FL 32746 USA

  • M 407-474-2216


import java.util.Hashtable;

import java.util.Iterator;

import java.util.Locale;

import com.sapportals.htmlb.Form;

import com.sapportals.htmlb.GridLayout;

import com.sapportals.htmlb.GridLayoutCell;

import com.sapportals.htmlb.Group;

import com.sapportals.htmlb.Tree;

import com.sapportals.htmlb.TreeNode;

import com.sapportals.htmlb.enum.CellVAlign;

import com.sapportals.htmlb.enum.GroupDesign;




import com.sapportals.portal.navigation.INavigationNode;

import com.sapportals.portal.navigation.INavigationService;

import com.sapportals.portal.navigation.NavigationNodes;

import com.sapportals.portal.prt.component.IPortalComponentRequest;

import com.sapportals.portal.prt.component.IPortalComponentResponse;

import com.sapportals.portal.prt.runtime.PortalRuntime;

public class display extends PageProcessorComponent {

     public DynPage getPage() {

          return new displayDynPage();


     public static class displayDynPage extends DynPage {



  • Initialization code executed once per user.


          public void doInitialization() {




  • Input handling code. In general called the first time with the second page request from the user.


          public void doProcessAfterInput() throws PageException {




  • Create output. Called once per request.


          public void doProcessBeforeOutput() throws PageException {

               Form myForm = this.getForm(); // get the form from DynPage

               Group group = new Group();


               group.setTitle(“Site Map”);


               GridLayout gl = new GridLayout();


               IPortalComponentRequest request =

                    (IPortalComponentRequest) this.getRequest();

               IPortalComponentResponse response =

                                   (IPortalComponentResponse) this.getResponse();

            try {

               NavigationNodes rootNodes = getrootnodes();

               int i = 1;

               for(Iterator it = rootNodes.iterator(); it.hasNext();){

                    INavigationNode rootNode = (INavigationNode);

                    String title =  rootNode.getTitle(Locale.ENGLISH);

                    Tree tree = new Tree(title, “”);


                    GridLayoutCell cell = new GridLayoutCell(rootNode.getName());

                    String text = “

BAM! you got yourself a nice sitemap


To report this post you need to login first.


You must be Logged on to comment or reply to a post.

    1. Gert Van Muylem
      You can find the jar in your portal @

      System Configuration > Support > Portal Runtime > Browse Deployment > WEB-INF > deployment > pcd >

      Download the zip file, extract it and add the as an external jar to your Portal Application project

  1. Amey Mogare

    Hello Prakash,

    Thanks for great blog.

    Sorry, about asking this, but I am not able to locate definition of method ‘getrootnodes’ in this.

    I see in replies that people have found it but I am not able to locate it.

    Could you please share?


Leave a Reply