Foren
How to Pass variable from Hook to Custom Portlet
Guru k, geändert vor 12 Jahren.
How to Pass variable from Hook to Custom Portlet
Junior Member Beiträge: 64 Beitrittsdatum: 08.02.12 Neueste Beiträge
Hi,
I am trying to pass the variable from JSP of Document and Media Hook to JSP of my Custom portlet.
I tried passing value through session like,
but i get the value as null. Please advice where am i going wrong.
Thanks
Guru
I am trying to pass the variable from JSP of Document and Media Hook to JSP of my Custom portlet.
I tried passing value through session like,
PortletSession session = renderRequest.getPortletSession();
session.setAttribute("sessionValue", portletId , PortletSession.APPLICATION_SCOPE);
PortletSession portletSession = renderRequest.getPortletSession();
String tabNames = (String)portletSession.getAttribute("sessionValue",PortletSession.APPLICATION_SCOPE);
but i get the value as null. Please advice where am i going wrong.
Thanks
Guru
Guru k, geändert vor 12 Jahren.
RE: How to Pass variable from Hook to Custom Portlet
Junior Member Beiträge: 64 Beitrittsdatum: 08.02.12 Neueste Beiträge
Got it working with the solution in the below thread,
http://www.liferay.com/community/forums/-/message_boards/message/11883956
http://www.liferay.com/community/forums/-/message_boards/message/11883956