Java type cannot be resolved
<p>I have a statement</p>

<pre><code>String pass = com.liferay.portal.util.PortalUtil.getUserPassword(
        renderRequest)
</code></pre>

<p>that causes the following error in eclipse IDE:</p>

<blockquote>
  <p>The type javax.servlet.http.HttpSession cannot
  be resolved. It is indirectly
  referenced from required .class files</p>
</blockquote>

<p>Why is this error occuring? I have added an import statement for the type but yet the error remains. How can I remove this error?</p>

<p>Thanks for your help.</p>
