2010-11-26 17 views
15

Estoy implementando un proyecto en struts en el que obtengo un error en una página JSP.Error "HttpServletRequest se refiere al tipo de cadena faltante"

Ya he configurado Tomcat 6, JRE y JDK 6 en Eclipce IDE.

El código es:

%request.getContextPath()% 

El error es:

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

¿Cómo puedo solucionar este error?

Respuesta

31

No ha agregado las bibliotecas JRE a su IDE. Agrégalo.

8

haga clic en su proyecto y vaya a la ruta de compilación configure la ruta jre actualizada y seleccione el tipo de biblioteca para agregar

Cuestiones relacionadas