码迷,mamicode.com
首页 > 编程语言 > 详细

javax.servlet.jsp.PageContext cannot be resolved to a type

时间:2018-08-27 14:04:32      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:项目   enc   VID   which   dep   span   end   stack   报错   

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

标签:项目   enc   VID   which   dep   span   end   stack   报错   

原文地址:https://www.cnblogs.com/wangleiblog/p/9541558.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!