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




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

    getting page name in portlet  


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


 
01-30-07 06:19 PM

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





[ Post a follow-up to this message ]



    Re: getting page name in portlet  


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


 
01-30-07 06:19 PM

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

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






[ Post a follow-up to this message ]



    Re: getting page name in portlet  


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


 
01-31-07 12:26 AM

thanks a lot issue resolved with above code.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:13 AM.      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