HttpServletRequest cannot be resolved to a type in eclipse - Solved
Hi,
How to solve the error which comes like this:
HttpServletRequest cannot be resolved to a type in eclipse
How to solve the error "HttpServletRequest cannot be resolved to a type"?
How to solve the error "HttpServletResponse cannot be resolved to a type"?
How to solve the error "HttpSession cannot be resolved to a type"?
For your information I am using Eclipse and maven for my project.
Thanks
View Answers
April 21, 2016 at 7:55 AM
Hi,
This error comes in project when servlet jar file is not added to project.
If you are using maven then add following line in pom.xml file:
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
If you are not using maven in your project then find servlet.jar from Tomcat server and then add it to your project.
This should solve error.
Thanks
May 4, 2016 at 4:02 AM
Hi
First you need to configure the server then follow the steps
1.Right click on Project-->Build Path-->Configure Build Path
2.go to libraries tab -->add Library-->server run time-->Select the server-->Finish
Now u can resolve the errors
Ads
Related Tutorials/Questions & Answers:
GsonBuilder cannot be resolved to a type
GsonBuilder
cannot be
resolved to a type Hi,
I am using GsonBuilder in my program and it is giving following compilation error:
GsonBuilder
cannot be
resolved to a
type
How to solve this?
What is the jar file for GsonBuilder
Advertisements
GsonBuilder cannot be resolved to a type
GsonBuilder
cannot be
resolved to a type Hi,
I am using GsonBuilder in my program and it is giving following compilation error:
GsonBuilder
cannot be
resolved to a
type
How to solve this?
What is the jar file for GsonBuilder
GsonBuilder cannot be resolved to a type
GsonBuilder
cannot be
resolved to a type Hi,
I am using GsonBuilder in my program and it is giving following compilation error:
GsonBuilder
cannot be
resolved to a
type
How to solve this?
What is the jar file for GsonBuilder
The import javax.validation cannot be resolved
The import javax.validation
cannot be resolved Hi,
I have a web application and due to missing maven dependency it is giving following error in
Eclipse:
The import javax.validation
cannot be
resolved.
What maven dependency
combobox cannot be resolved in JavaFX
combobox
cannot be
resolved in JavaFX I want to design one application with a combobox containing items. and while selecting i want to give user autocomplete suggestion. but while doing this combobox is not getting
resolved. i
org.hibernate.validator cannot be resolved error
org.hibernate.validator
cannot be
resolved error In Hibernate based...
cannot be
resolved error
Program is not compiling due to this error.
How... and
Eclipse for developing the application.
Thanks
This error is due
Eclipse hibernate problem
an error saying "import org.hibernate.*
cannot be
resolved" ,mport org.hibernate.SessionFactory
cannot be
resolved.
Can u please help me with this..
 ...
Eclipse hibernate problem hie..i've just started a basic hibernate
Eclipse
Eclipse I am new to
eclipse. i want to create a login page in
eclipse and want to connect with mysql. what are the software and jar file i need to include in
eclipse
Eclipse
Eclipse how to compile using
eclipse
eclipse
eclipse Hi
how to debug in
eclipse ide and how to find bug in
eclipse ?
Thanks
kalins naik
Java HttpServletRequest
Java
HttpServletRequest
In this section we will read about
HttpServletRequest.
HttpServletRequest is an interface and extends the
ServletRequest interface... information for HTTP Servlets. Object of the
HttpServletRequest is created
eclipse
eclipse how to add tomcat server first time in
eclipse
Eclipse
Eclipse I am new to
eclipse. I want to write a jsp program and want to connect it with mysql. What are the configurations i need to check in
eclipse
Eclipse
Eclipse How to develope web application servlets or jsp using
eclipse id
data type used to store name.(getting an error)
getting an error like dis:
"ename
cannot be
resolved to a variable"
whats...data
type used to store name.(getting an error) Statement stm=con.createStatement();
String query="select * from employee where ename
cannot do the additional operator
cannot do the additional operator i got problem with additional...;!-- first text field -->
<input
type="text" name="num1">
<!-- selection...;input
type="text" name="num2">
</p>
<p align="center">
<
cannot display an arrayList in JSP
cannot display an arrayList in JSP Hello,
My bean is called Zone, i got all Zones from sql Server with Hibernate.
in DAO.Class:
print("List zones = session.createQuery("FROM Zone").list();");
i want to send this List from
Question in Eclipse
Question in
Eclipse ** Hello EveryOne , L Have Question in
Eclipse ?!!
Question is :
A.( The square class) Design a class named Square that contains :
1.A private instance variable side of
type double
2.A no-argument
Question in Eclipse ??
Question in
Eclipse ?? ** Hello EveryOne , L Have Question in
Eclipse ?!!
Question is :
A.( The square class) Design a class named Square that contains :
1.A private instance variable side of
type double
2.A no-argument
Eclipse
Eclipse
Eclipse... a development environment from plug-in
components. Fortunately,
Eclipse comes... can also extend its
capabilities by installing plug-ins written for the
Eclipse
Java error cannot find symbol
Java error
cannot find symbol
In this section you will learn about "
cannot find symbol" in java. Java
cannot find symbol is a
type of error occurs...
the variable in use its trying to refer, then it will give a error
cannot find
symbol