WebSphere Portal Server - getting page name in portlet

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > January 2007 > getting page name in portlet





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 getting page name in portlet

2007-01-30, 1:19 pm

i am newbie in portlet development , need to know way to get page name in the portlet that hosted it .
thanks in advance

2007-01-30, 1:19 pm

I assume you want this inside a JSP. Following code will give u the currently selected page.

<%
String selectedNode = null;
%>
<wps:navigation startLevel="2">
<wps:navigationLoop>
<%
if (wpsSelectionModel.isNodeSelected(wpsNavNode)) {
selectedNode = wpsNavNode.toString();
}
%>
</wps:navigationLoop>
</wps:navigation>

2007-01-30, 7:26 pm

thanks a lot issue resolved with above code.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com