title: Cookie cannot be resolved to a type in eclipse
body: <p>I am doing a simple project to learn session management in java. I am getting an error <code>Cookie cannot be resolved to a type</code> when I write my jsp page: </p>
  
  <pre><code>&gt; Cookie[] cookies = request.getCookies();` shows error. 
  </code></pre>
  
  <p>I am using Tomcat v6.0. A few blogs suggested in adding a targeted runtime to resolve this. But I am unable to add.</p>
  
  <p>Please help me resolve this.</p>
  
  <p>Thanks.</p>