[jboss-dev-forums] [Design of JBoss Portal] - Re: Accessing session attributes in a portlet
apemberton
do-not-reply at jboss.com
Mon Mar 9 14:44:15 EDT 2009
Ah, understood. See the logic in PortletTag.java from the JBoss Portal code base to see how to access the underlying HttpServletRequest.
Something like the following will get you access to the underlying ServletRequest:
| ServletRequest req = pageContext.getRequest();
| PortletInvocation invocation = (PortletInvocation)req.getAttribute(ContextDispatcherInterceptor.REQ_ATT_COMPONENT_INVOCATION);
| HttpServletRequest request = invocation.getDispatchedRequest();
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4216345#4216345
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4216345
More information about the jboss-dev-forums
mailing list