Portlet 之间使用 PortletSession 进行通信

 Portlet A 添加:

PortletSession session = request.getPortletSession();    
session.setAttribute("LIFERAY_SHARED_directive", "test" ,PortletSession.APPLICATION_SCOPE);  

Portlet B 使用:

PortletSession portletSession = request.getPortletSession();    
String directive = (String)portletSession.getAttribute("LIFERAY_SHARED_directive",PortletSession.APPLICATION_SCOPE); 


(1)