title: request.getAttribute in javascript shows null
body: <p>I am executing a query in jsp and using <code>resultSet.getString()</code> to get that field. </p>
  
  <pre><code>String eKnowledge = resultset.getString("knowledge");
  </code></pre>
  
  <p>Then using <code>request.setAttribute()</code> to set that field in jsp.  </p>
  
  <pre><code>request.setAttribute("actualKnowledge", eKnowledge);
  </code></pre>
  
  <p>I am using <code>request.getAttribute()</code> in javascript to get that object. </p>
  
  <pre><code>&lt;script type="text/javascript"&gt; 
  
      function moreInformationDisplay() {
          var jsKnowledge = &lt;%=request.getAttribute("actualKnowledge")%&gt;;
          alert(jsKnowledge); 
      }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>But the alert message shows <strong>null</strong>. 
  Can someone please help me with this problem.</p>