WebSphere Portal Server - How to determine portal page ID?

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > January 2005 > How to determine portal page ID?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to determine portal page ID?
Alex

2005-01-19, 7:48 am

Hi,
anybody knows -
1. How to determine current portal page ID or unique name (where portlet is
installed)? Is there any API?
2. How to create a link (within portlet/jsp) to other portal page?

Thank you for any ideas.




Maik Weber

2005-01-19, 7:48 am

Alex wrote:
> Hi,
> anybody knows -
> 1. How to determine current portal page ID or unique name (where portlet is
> installed)? Is there any API?


You have to use the ModelAPI:

import com.ibm.portal.*;
import com.ibm.portal.navigation.*;
import com.ibm.wps.model.ModelUtil;

ModelUtil util = ModelUtil.from(request)
NavigationNode node =
(NavigationNode)util.getNavigationSelectionModel().getSelectedNode();
String id = node.getContentNode().getObjectID().toString();
String uniquename = node.getContentNode().getObjectID().getUniqueName()

> 2. How to create a link (within portlet/jsp) to other portal page?


Which version of WebSphere Portal are you using?

>
> Thank you for any ideas.
>
>
>
>

Alex

2005-01-19, 7:48 am

> > 2. How to create a link (within portlet/jsp) to other portal page?
>
> Which version of WebSphere Portal are you using?


Portal 5.1


Maik Weber

2005-01-19, 7:48 am

Alex wrote:
>
>
> Portal 5.1
>
>


Currently I don't have an 5.1 installation at hand. So, just have a look
into <WP_HOME>/shared/app/WEB-INF/tld/engine.tld. There should be a jsp
tag defined like urlGeneration. You can use this tag together with the
objectid of the other portal page. There should also be a tag which uses
the unique name of a page to create a link.

Maik
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com