jsp页面报错: javax.servlet.jsp.PageContext cannot be resolved to a type
来源:互联网 发布:四川网络教育学校 编辑:程序博客网 时间:2024/05/16 15:48
问题:当从一个项目中拷贝jsp文件到另一个项目中出现报错:javax.servlet.jsp.PageContext cannot be resolved to a type
解决方法一:添加依赖(推荐)
<dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> </dependency> <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>jsp-api</artifactId> <version>2.2.1-b03</version> </dependency>
解决方法二:将项目部署到tomcat服务当中
这种问题的解决办法是把这个项目在服务器上部署一下就可以了,如下:
0 0
- JSP页面无故报错 javax.servlet.jsp.PageContext cannot be resolved to a type
- JSP页面无故报错 javax.servlet.jsp.PageContext cannot be resolved to a type
- JSP页面无故报错 javax.servlet.jsp.PageContext cannot be resolved to a type
- jsp页面报错: javax.servlet.jsp.PageContext cannot be resolved to a type
- jsp页面报javax.servlet.jsp.PageContext cannot be resolved to a type:
- JSP页面报javax.servlet.jsp.PageContext cannot be resolved to a type 错误
- 报错:javax.servlet.jsp.PageContext cannot be resolved to a type
- 报错:javax.servlet.jsp.PageContext cannot be resolved to a type
- javax.servlet.jsp.PageContext cannot be resolved to a type
- javax.servlet.jsp.PageContext cannot be resolved to a type
- javax.servlet.jsp.PageContext cannot be resolved to a type
- javax.servlet.jsp.PageContext cannot be resolved to a type
- javax.servlet.jsp.PageContext cannot be resolved to a type
- javax.servlet.jsp.PageContext cannot be resolved to a type
- javax.servlet.jsp.PageContext cannot be resolved to a type
- javax.servlet.jsp.PageContext cannot be resolved to a type
- jsp代码页面报:javax.servlet.jsp.PageContext cannot be resolved to a type错误的解决办法
- Eclipse jsp页面javax.servlet.jsp.PageContext cannot be resolved to a type 错误解决办法
- android图标库 hellocharts 遇到的坑
- 离散基础 (1). 从“访存模型”看“切比雪夫定理”
- javascript 获取url 参数
- 【Java开发手册之异常日志(二)】日志规约
- web 高并发解决方案---理论版
- jsp页面报错: javax.servlet.jsp.PageContext cannot be resolved to a type
- SPOJ SUBSUMS
- Wifi设置中添加网络,判断编辑是否可提交(后续分析ScrollView)
- tomcat和jboss对比
- 进阶篇_指向自身的this指针
- Java常用排序算法/程序员必须掌握的8大排序算法
- Terminator的安装和简介
- IntelliJ Idea 常用快捷键
- 线程安全与锁优化