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#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...