Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » HttpServletRequest cannot be resolved to a type - in jsp
HttpServletRequest cannot be resolved to a type - in jsp [message #187557] Tue, 06 February 2007 08:53 Go to next message
Eclipse UserFriend
Originally posted by: shirly.armin.robo-group.com

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?
Re: HttpServletRequest cannot be resolved to a type - in jsp [message #187580 is a reply to message #187557] Tue, 06 February 2007 14:32 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

shirly armin wrote:
> i'm getting an error:
> HttpServletRequest cannot be resolved to a type

Is the class on the project's build path? Targetting a valid server
runtime will usually make it available.

--
Nitin Dahyabhai
Structured Source Editor


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Java 5 Generics and XDoclet
Next Topic:Looking for Servlet info
Goto Forum:
  


Current Time: Wed Apr 24 23:57:05 GMT 2024

Powered by FUDForum. Page generated in 0.02995 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top