When using JSR 168, and you want to pass PortletSession to HttpSession, view this link: [url]http://www-03.ibm.com/developerworks/blogs/page/Joey_Bernal? entry=portlet_session_scope_and_sharing[/url]
The key is to put PortletSession session = request.getPortletSession(); in you doView method of your Portlet class (not the pagecode). In your servlet, you can then : public void doPost(HttpServletRequest req, HttpServletResponse res)throws IOException, ServletException { HttpSession session = req.getSession(true); Whatever something = (Whatever)session.getAttribute("portletObject"); ... } To make sure you have the correct portlet object, you can use the following code to make sure: Enumeration attributes = session.getAttributeNames(); while (attributes.hasMoreElements()) { System.out.println(attributes.nextElement().toString()); } The spec just allows the implementer to use name space encoding when mapping attributes within the session. You can't simply access the portletSession with the HttpSession without the above solution as was suggested. Hope that helps!! Tyler View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956319#3956319 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956319 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user