It is currently Fri May 18, 2012 5:14 pm


Post a new topicPost a reply Page 1 of 1   [ 1 post ]
Author Message
 Post subject: Linking to Portal Pages in IBM Websphere Portal
PostPosted: Mon Nov 29, 2010 8:36 am 
Site Admin

Joined: Sat Aug 02, 2008 8:00 am
Posts: 147
In your portal applications you most of the time will need to link in your portlets to other portal pages that reside on the same portal server. IBM Websphere Portal provides the appropriate JSP tags for linking to other portal pages. The tag library is defined in the beginning of the JSP as follows

Code:
<%@ taglib uri="/WEB-INF/tld/portal.tld" prefix="portal" %>


This tag library contains the tag <portal:urlGeneration > which tells portal to lookup fr the desired page using the provided Unique Name and if the page exists and the current user has access to it then render the JSP code that xists in the body of the tag

In the following code the portlet will render an anchor to the desired page

Code:
  <portal:urlGeneration  contentNode="[i]PAGE_UNIQUE_NAME[/i]"
                     layoutNode="[i]PAGE_UNIQUE_NAME[/i]"
                     portletWindowState="Normal"
                     pacCheck="NoCheck">
   <a href="<%wpsURL.write(out);%>">
Link Text Here
   </a>
</portal:urlGeneration>


Reference :
http://publib.boulder.ibm.com/infocente ... _serv.html

_________________

Muhammad Safwat Fuad
The Java Code Admin
Java Technical Lead.
Mobile: +2010-2942-538
Email:mtv134@yahoo.com


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 1 post ]


Who is online

Registered users: Google [Bot]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
twilightBB Style by Daniel St. Jules of Gamexe.net

[
SEO MOD © 2007 StarTrekGuide ]