title: Print session attributes in jsp
body: <p>My webapp is ready but I just wanted to add a little dropdown menu with the username as title. This is my jsp code:</p>
  
  <pre><code>                &lt;i class="icon-user"&gt;&lt;/i&gt; 
                  &lt;%
                      session.getAttribute("name");
                  %&gt;
                  &lt;span class="caret"&gt;&lt;/span&gt;
  </code></pre>
  
  <p>and it sais</p>
  
  <p>session cannot be resolved</p>
  
  <pre><code>9:              &lt;a class="btn dropdown-toggle" data-toggle="dropdown" href="#"&gt;
  10:                     &lt;i class="icon-user"&gt;&lt;/i&gt; 
  11:                     &lt;%
  12:                         session.getAttribute("name");
  13:                     %&gt;
  14:                     &lt;span class="caret"&gt;&lt;/span&gt;
  15:                 &lt;/a&gt;
  </code></pre>
  
  <p>There is a session because I'm logged in. </p>
  
  <p>Kind regards,</p>