idea编辑jsp页面的时候,使用pageContext.setAttribute方法会飘红。
解决办法:
导入
<!-- https://mvnrepository.com/artifact/javax.servlet/jsp-api -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jsp-api</artifactId>
<version>2.0</version>
<scope>provided</scope>
</dependency>
本文介绍了解决IDEA编辑jsp页面时使用pageContext.setAttribute方法出现错误提示的问题,通过导入jsp-api依赖即可解决。

695

被折叠的 条评论
为什么被折叠?



