I have a statement
String pass = com.liferay.portal.util.PortalUtil.getUserPassword(renderRequest);
that causes the following error in eclipse IDE:
The type javax.servlet.http.HttpSession cannot be resolved. It is indirectly referenced from required .class files
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?
Thanks for your help.
It sounds like you haven’t referenced the right libraries. Add a reference to servlet.jar.