javax.servlet.jsp cannot be resolved to a type

把MyEclipse里的项目导入到Eclipse Luna版中后出现了个莫名其妙的错误,注:Eclipse Luna是新装的。

错误描述:jsp页面中引用的js报错,鼠标放上去以后提示:javax.servlet.jsp cannot be resolved to a type。图片为证:

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

----------------------------------------------------------------------------------------------------------------------------------------------

javax.servlet.jsp cannot be resolved to a type

javax.servlet.jsp cannot be resolved to a type,布布扣,bubuko.com

javax.servlet.jsp cannot be resolved to a type

上一篇:Java线程:创建与启动


下一篇:10.JAVA之GUI编程弹出对话框Dialog