How to determine portal page ID?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > How to determine portal page ID?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    How to determine portal page ID?  
Alex


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-19-05 12:48 PM

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.









[ Post a follow-up to this message ]



    Re: How to determine portal page ID?  
Maik Weber


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-19-05 12:48 PM

Alex wrote:
> Hi,
> anybody knows -
> 1. How to determine current portal page ID or unique name (where portlet i
s
> 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.
>
>
>
>





[ Post a follow-up to this message ]



    Re: How to determine portal page ID?  
Alex


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-19-05 12:48 PM

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

Portal 5.1







[ Post a follow-up to this message ]



    Re: How to determine portal page ID?  
Maik Weber


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-19-05 12:48 PM

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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:28 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register