[jboss-dev-forums] [Design of JBoss Portal] - Re: Accessing session attributes in a portlet

apemberton do-not-reply at jboss.com
Wed Jan 14 00:23:06 EST 2009


Steve:

You might clarify by adding your Portal version info, etc., but I'll take a stab at an answer anyway.

Your servlet listener will intercept requests to the underlying portal servlet, whereas the portlet code you showed there is accessing the portlet's session. These two session are inherently different (different WAR deployments)

Instead try the following in your portlet code:


  | Navigation.getPortalRuntimeContext().getSession().getAttribute("attr1");

This will allow you to access the underlying portal servlet's global session from your portlet code.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201573#4201573

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201573



More information about the jboss-dev-forums mailing list