javax.servlet.jsp.PageContext cannot be resolved to a type
Posted 代码之间
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javax.servlet.jsp.PageContext cannot be resolved to a type相关的知识,希望对你有一定的参考价值。
jsp项目中报错:
javax.servlet.jsp.PageContext cannot be resolved to a type
stack overflow上找的解决方案:
You will need to import in your project the JSP APIs, which are not included in servlet-api
In my project, the solution is
<dependency> <groupId>javax.servlet</groupId> <artifactId>jsp-api</artifactId> <version>2.0</version> <scope>provided</scope> </dependency>
参考链接:
https://stackoverflow.com/questions/8669387/javax-servlet-jsp-pagecontext-cannot-be-resolved-to-a-type
以上是关于javax.servlet.jsp.PageContext cannot be resolved to a type的主要内容,如果未能解决你的问题,请参考以下文章