19

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?

Lii
  • 11,553
  • 8
  • 64
  • 88
Yugal
  • 1,635
  • 8
  • 21
  • 30

2 Answers2

34

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

Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
8

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

Amol Agase
  • 101
  • 1
  • 1