Accessing servlet session from portlet

View: New views
1 Messages — Rating Filter:   Alert me  

Accessing servlet session from portlet

by ? ?-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm trying to access my servlet session from my portlet. The wierd thing is that I can access portlet session from my servlet. I'm using Tomcat 5.5.4 and I have added emptySessionPath="true" to my server.xml. and both my servelt and portlet are in the same webapp.

in servlet I'm setting the attributeĀ 
request.getSession().setAttribute("test", "test");

and in the portlet I'm trying to get it
request.getPortletSession().getAttribute("test", PortletSession.APPLICATION_SCOPE);

But it's returning null.

can anyone help me with this?!
thanks



_______________________________________________
Gridsphere-users mailing list
Gridsphere-users@...
http://lists.gridsphere.org/mailman/listinfo/gridsphere-users
LightInTheBox - Buy quality products at wholesale price