title: Liferay set portlet Session value
body: <p>I have 2 portlet, one is MVC Portlet and another is JSF Porlet.
  i want to send Attribute from MVC Portlet to another.</p>
  
  <p>in MVC Portlet : </p>
  
  <pre>
  @Override
      public void processAction(ActionRequest actionRequest,
              ActionResponse actionResponse) throws IOException, PortletException {
  
  
          PortletSession portletSession = actionRequest.getPortletSession();
          portletSession.setAttribute("example", "SET ATTR PROCESS ACTION",
                  PortletSession.APPLICATION_SCOPE);
  ....
  </pre>
  
  <p>and in other JSF Portlet : </p>
  
  <pre>
  FacesContext facesContext = FacesContext.getCurrentInstance();
  PortletRequest request = (PortletRequest)facesContext.getExternalContext().getRequest();
  PortletSession session = request.getPortletSession(false);
  String testString = (String) session.getAttribute("example",PortletSession.APPLICATION_SCOPE);
  </pre>
  
  <p>But the value of testString always return null.</p>
  
  <p>Both of 2 portlet have config in liferay-portlet.xml:</p>
  
  <pre><code>&lt;private-session-attributes&gt;false&lt;/private-session-attributes&gt;  
  </code></pre>
  
  <p>I am new with liferay. Thanks for help!</p>