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