title: session in jsp getting null value on getAttribute
body: <p>I have the addedit.jsp page</p>
  
  <p>where I am inserting myinput in a textarea</p>
  
  <pre><code>your input
      &lt;input id="thistextfield" type="text"  name="ruleField" size="20" &gt;
      &lt;input type = "submit" name = "submit" value = "submit"&gt;
  
  &lt;a href="SaveName.jsp"&gt;to savename&lt;/a&gt;
  </code></pre>
  
  <p>my session gets stored in this page</p>
  
  <pre><code>&lt;%@ page contentType="text/html;charset=UTF-8" language="java" %&gt;
  &lt;%@ page import="java.lang.String" %&gt;
  
  &lt;%
      String ruleField = request.getParameter( "ruleField" );
      session.setAttribute( "theName", ruleField );
  
  
  %&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;a href="test2.jsp"&gt;Continue&lt;/a&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here is my text2 page.
  where I am supposed to get back the session</p>
  
  <pre><code>Hello,&lt;textarea &gt; &lt;%= session.getAttribute("theName")%&gt;  &lt;/textarea&gt;
  </code></pre>
  
  <p>but the problem is that I get a null value in my textarea.
  And I am using IntelliJIdea 12 and the getParameter and getAttribute show up in red as cannot resolve method.</p>