Error "HttpServletRequest refers to the missing type String"

Yugal picture Yugal · Nov 26, 2010 · Viewed 45.7k times · Source

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?

Answer

Bozho picture Bozho · Nov 26, 2010

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