把MyEclipse里的项目导入到Eclipse Luna版中后出现了个莫名其妙的错误,注:Eclipse Luna是新装的。
错误描述:jsp页面中引用的js报错,鼠标放上去以后提示:javax.servlet.jsp cannot be resolved to a type。图片为证:
类似以上底下有红色波浪线的错误,好多jsp页面都有,还各不相同。
解决办法:
点击菜单栏:Window→Preferences→Validation,在右侧找“JSP Syntax Validator”项,将该项后面的√去掉。点击OK,搞定!!
----------------------------------------------------------------------------------------------------------------------------------------------
javax.servlet.jsp cannot be resolved to a type,布布扣,bubuko.com
javax.servlet.jsp cannot be resolved to a type
原文地址:http://blog.csdn.net/yxdayd/article/details/38146615