[jboss-user] [JBoss Portal] - Session objects in PageCustomizerInterceptor and jsp/servlet
bvogt
do-not-reply at jboss.com
Wed Nov 21 02:12:06 EST 2007
We need to pass data from a page (declared property) to a ThemeTagHandler.
In portal 2.4.1 it works by extracting the declared property in a portlet context , passing it via: PortletRequest.getPortletSession().setAttribute(attributeName, attributeValue, PortletSession.APPLICATION_SCOPE)
and retrieving it in the ThemeTagHandler by:((PageContext)getJspContext()).getSession().getAttribute(attributeName)
In portal 2.6.2 this works too, but in order to reduce our portlets we decided to move their functionality to a custom PageCustomizerInterceptor.
In this context it seems, that session objects defined by:((PageCommand) cmd).getControllerContext().getServerInvocation().getServerContext().getClientRequest().getSession().setAttribute(attributeName, attributeValue);
are not "visiible" in either portlet or servlet/jsp context although the session ids are the same in each context.
I guess the reason is the same as for: http://jboss.org/index.html?module=bb&op=viewtopic&t=123276
Has anyone an idea how to bypass this behaviour?
Thanks for any hints in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106612#4106612
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106612
More information about the jboss-user
mailing list