There is a detailed description of this issue in the Spring Portlet MVC FAQ:
http://opensource.atlassian.com/confluence/spring/x/Oww Brice Lambi wrote:
I found the solution in the mailing list archives. I needed to add emptySessionPath="true" to the connector element in tomcat's server.xml file. So it looks like this: <Connector port="8080" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" emptySessionPath="true"/> Thanks, Brice On Thu, 2006-09-21 at 18:41 +0200, Jacek Wiślicki wrote:Wiadomosc od Brice Lambi z 2006-09-21 18:29 brzmiala:Be sure you use PortletSession.APPLICATION_SCOPE, not PortletSession.PORTLET_SCOPE (this is a default for the second method argument).I would like to set a session variable in a servlet and retrieve it in a portlet. Both are in the same application, but it doesn't appear to work. I've set an attribute using the HttpSession in a servlet, but the attribute is null when I try to get it using the PortletSession. I've tried it the other way also, setting a variable in a portlet and trying to retrieve it in a servlet. That also does not work. Is there any way to accomplish this?
smime.p7s
Description: S/MIME Cryptographic Signature
