错误“HttpServletRequest引用缺少的类型String” [英] Error "HttpServletRequest refers to the missing type String"

查看:1450
本文介绍了错误“HttpServletRequest引用缺少的类型String”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在struts中实现了一个项目,我在JSP页面中遇到错误。

I am implementing a project in struts in which I am getting an error in a JSP page.

我已经配置了Tomcat 6,JRE和JDK 6 in Eclipce IDE。

I have already configured Tomcat 6, the JRE and JDK 6 in Eclipce IDE.

代码为:

%request.getContextPath()%

错误是:

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

如何解决此错误?

推荐答案

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

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

这篇关于错误“HttpServletRequest引用缺少的类型String”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆