I want to set user related data in struts application and i want to retrieve same data in the head page .which is in other portlet . so i was trying to set the data in portlet session
but i couldn't find any portletsession object . how to set the portlet session and retrive the portlet session . i am extending extends Action in action class do i need to change this ?
thanks is advance
You need to set the data in the session at application scope level, only than you will be able to access this data in another portlet.
You don't really need PortletSession or HttpSession both will return you the same data.