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

posted @ 2018-08-27 12:41  代码之间  阅读(2047)  评论(0编辑  收藏  举报