Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error "HttpServletRequest refers to the missing type String"

I am implementing a project in struts in which I am getting an error in a JSP page.

I have already configured Tomcat 6, the JRE and JDK 6 in Eclipce IDE.

The code is:

%request.getContextPath()%

The error is:

The method getContextPath() from the type HttpServletRequest refers to the missing type String

How can I resolve this error?

like image 486
Yugal Avatar asked Nov 26 '10 11:11

Yugal


2 Answers

You haven't added the JRE libraries to your IDE. Add it.

like image 79
Bozho Avatar answered Nov 02 '22 19:11

Bozho


click on your project and go to build path configure updated jre path and Select the library type to add

like image 42
Amol Agase Avatar answered Nov 02 '22 20:11

Amol Agase