Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

HttpServletRequest cannot be resolved to a type in JSP - eclipse

843838Feb 6 2007 — edited Feb 6 2007
Hi,
i've created a webapp in eclipse ver 3.2.
my jsp looks like this:

<%!

private boolean checkLoginRule(HttpServletRequest request, HttpServletResponse response, Integer nLevel) {

// if user was already authenticated pass him on
if (request.getSession(true).getAttribute("userID") == null)
response.sendRedirect("index.jsp");
else {
Integer nUserLevel =(Integer)request.getSession(true).getAttribute("userRole");
if (nUserLevel.intValue() < nLevel.intValue())
return false;
}
return true;
}
%>


i'm getting an error:
HttpServletRequest cannot be resolved to a type


What to do?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 6 2007
Added on Feb 6 2007
1 comment
395 views