写javaweb jsp时使用application.getAttribute出现报错 Cannot resolve method ‘getAttribute(java.lang.String)’
第一步:File–>Proje Structure 第二步:进入Libraries,选择添加java
第三步:进入tomcat文件目录的lib文件夹,找到jsp-api.jar和servlet-api.jar 分别选中后点OK按钮添加。