title: How to use <%= request.getAttribute("JsData")%> syntax in Facelets?
body: <p>I just started learning about JSF. 
  In JSP file we can use <code>&lt;%= request.getAttribute("JsData")%&gt;</code> to get the session data.
  How can we get the session data in a Facelets file? For example:</p>
  
  <pre><code>&lt;h:head&gt;
      &lt;script type="text/javascript"&gt;
      //&lt;![CDATA[
      var query = jQuery.noConflict();
      function getInitData() {
                getJSData();
          }
      //]]&gt;
      &lt;%= request.getAttribute("JsData")%&gt;
      &lt;/script&gt;
  &lt;/h:head&gt;
  &lt;h:body onload="initData();"&gt;
  &lt;p:commandButton id="loginButton" value="login" &gt;&lt;/p:commandButton&gt;
  &lt;p:commandButton id="close" value="close" &gt;&lt;/p:commandButton&gt;
  &lt;/h:body&gt;
  </code></pre>