i am newbie in portlet development , need to know way to get page name in the portlet that hosted it .
thanks in advance
Printable View
i am newbie in portlet development , need to know way to get page name in the portlet that hosted it .
thanks in advance
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>
thanks a lot issue resolved with above code.