title: Set Session attribute using expression language
body: <p>How I can set an attribute in a session using expression language in the following code </p>
  
  <pre><code> &lt;body&gt;
          &lt;h1&gt;Hello ${param.name}!&lt;/h1&gt;
          &lt;% String n = $ {param.name} %&gt;
  
          &lt;%
              session.setAttribute("user", n);
          %&gt;  
  
          &lt;a href="process.jsp"&gt;visit&lt;/a&gt;  
      &lt;/body&gt;
  </code></pre>