Fórum

How to share session attributes between a portlet and a theme

venkat g, modificado 13 Anos atrás.

How to share session attributes between a portlet and a theme

New Member Postagens: 4 Data de Entrada: 11/10/10 Postagens Recentes
How to share session attributes between a portlet and a theme.
venkat g, modificado 13 Anos atrás.

RE: How to share session attributes between a portlet and a theme

New Member Postagens: 4 Data de Entrada: 11/10/10 Postagens Recentes
Looking for help on the above topic.
Arun Kumar S, modificado 13 Anos atrás.

RE: How to share session attributes between a portlet and a theme

Regular Member Postagens: 182 Data de Entrada: 23/06/08 Postagens Recentes
venkat g:
How to share session attributes between a portlet and a theme.



Hi Venkat,

I hope the below link helps you

Access Objects from Velocity



1. $renderRequest.getPortletSession()

Use the above code in vm to access Portlet Session in theme.

HTH,
Arun.
venkat g, modificado 13 Anos atrás.

RE: How to share session attributes between a portlet and a theme

New Member Postagens: 4 Data de Entrada: 11/10/10 Postagens Recentes
Hi Arun,

I am getting nothing when i am using $renderRequest.getSession() and $request.getSession()
in portal_normal.vm

I have set a session attribute in view.jsp in calender portlet, and able to get in dictionary portlet, but unable to get in the theme.

request.getSession().setAttribute("LIFERAY_SHARED_ValueFromPortlet1","venkat");
venkat g, modificado 13 Anos atrás.

RE: How to share session attributes between a portlet and a theme

New Member Postagens: 4 Data de Entrada: 11/10/10 Postagens Recentes
Hi Arun,

Now i am able to get session attribute which i set in a portlet from vm using

$request.getSession().getAttribute(key);

but I am unable to get the same attribute in jsp which i included in theme.

Any body please suggest.
thumbnail
Brian Scott Schupbach, modificado 10 Anos atrás.

RE: How to share session attributes between a portlet and a theme

Expert Postagens: 329 Data de Entrada: 23/10/08 Postagens Recentes
Did you ever figure this out?

I am wanting to do the same thing.

Thanks,

Brian