[jboss-user] [JBoss Portal] - Re: How to share session data between portlets
Vineet_Tripathi
do-not-reply at jboss.com
Mon Jul 27 02:42:58 EDT 2009
Insted of using portletSession, you can use HttpSession object to store such information, try this code snippet:
|
| import javax.security.jacc.PolicyContext;
| import javax.security.jacc.PolicyContextException;
| import javax.servlet.http.HttpServletRequest;
| import javax.servlet.http.HttpSession;
|
| request = (HttpServletRequest) PolicyContext.getContext("javax.servlet.http.HttpServletRequest");
| request = (HttpServletRequest) PolicyContext.getContext("javax.servlet.http.HttpServletRequest");
|
| HttpSession httpSession = request.getSession();
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246095#4246095
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4246095
More information about the jboss-user
mailing list