On Wednesday 02 July 2008 01:28:08 Nariman M wrote:
> 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 you retrieve it the other way around ? (Set in portlet and get in
servlet?) Does it work in a JSP?
I am passing session values between Portlet and JSPs (effectively servlet at
runtime) and it works fine. Maybe you can also upgrade your tomcat to 5.5.26?
Regards
Anand
> can anyone help me with this?!
> thanks
_______________________________________________
Gridsphere-users mailing list
Gridsphere-users@...
http://lists.gridsphere.org/mailman/listinfo/gridsphere-users