手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

MyEclipse中遇到HttpServletResponse报红叉

时间:2024-10-12 05:32:49

1、错误情况:HttpServletResponse response = ServletActionContext.getResponse();这句报红叉

MyEclipse中遇到HttpServletResponse报红叉

2、提示:The type javax.servlet.http.HttpServletResponse cannot be resolved. It is indirectly referen艘早祓胂ced from required .class files,并要求configuration build path

MyEclipse中遇到HttpServletResponse报红叉

3、解决办法:点击提示中的configuration build path(或者右键项目,点击Build Path->configuration build path),打开build path界面后,选择Libraries选项卡,并单击Add Library,如图

MyEclipse中遇到HttpServletResponse报红叉

4、选择MyEclipse Libraries,点击Next

MyEclipse中遇到HttpServletResponse报红叉

5、找到Java EE 5,点击Finish

MyEclipse中遇到HttpServletResponse报红叉

6、再看代码,红叉已经解决

MyEclipse中遇到HttpServletResponse报红叉
© 手抄报圈