Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java “错误”;HttpServletRequest引用了缺少的类型字符串";_Java_Jsp_Servlets_Struts2 - Fatal编程技术网

Java “错误”;HttpServletRequest引用了缺少的类型字符串";

Java “错误”;HttpServletRequest引用了缺少的类型字符串";,java,jsp,servlets,struts2,Java,Jsp,Servlets,Struts2,我正在struts中实现一个项目,其中JSP页面中出现了一个错误 我已经在ECLICEIDE中配置了Tomcat6、JRE和JDK6 代码是: %request.getContextPath()% 错误是: The method getContextPath() from the type HttpServletRequest refers to the missing type String 如何解决此错误?您尚未将JRE库添加到IDE中。添加它。单击您的项目,转到构建路径配置更新的jre

我正在struts中实现一个项目,其中JSP页面中出现了一个错误

我已经在ECLICEIDE中配置了Tomcat6、JRE和JDK6

代码是:

%request.getContextPath()%
错误是:

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

如何解决此错误?

您尚未将JRE库添加到IDE中。添加它。

单击您的项目,转到构建路径配置更新的jre路径,并选择要添加的库类型