title: passing parameters / session values between pages in JSP
body: <p>I have a <code>Login.jsp</code> page which has the <code>action="session.jsp"</code> set for a login form.</p>
  
  <p>In the Login page, the session parameters are set as </p>
  
  <pre><code>&lt;% String username = request.getParameter("username");
     session.setAttribute("username", username); %&gt;
  </code></pre>
  
  <p>Now when I try to access these values in the session page</p>
  
  <pre><code>Welcome &lt;%= session.getAttribute("username") %&gt;
  </code></pre>
  
  <p>I get a <code>Welcome null</code></p>
  
  <p>Any thoughts? </p>