jsp页面文件报错 javax.servlet cannot be resolved to a type
来源:互联网 发布:golang microservice 编辑:程序博客网 时间:2024/05/17 03:17
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>登陆</title>
<link href="${pageContext.request.contextPath}/WEB-INF/css/loginStyle.css" rel="stylesheet" type="text/css"/>
</head>收起
pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>登陆</title>
<link href="${pageContext.request.contextPath}/WEB-INF/css/loginStyle.css" rel="stylesheet" type="text/css"/>
</head>收起
人就是无奈 | 浏览 26761 次
发布于2013-11-01 16:23最佳答案
可能是jdk 里不包括servlet-api.jar这个包,到tomcat里找到这个包复制到java项目里。
项目名-->右键
Property-->选择
Java Build Path-->选择
Add External JARs-->选择
把servlet-api.jar的路径输入即可 该包在tomcat里有 搜索即课找到
1316895362|2017-5-16 10:30
javaxservletjspJspException cannot be resolved to a type javaxservletjspPageContext cannot be 你有没有把 JSP的包配置到jdk/jre/lib/ext下?放到jdk下面就好了回复
萌生启程|2017-5-5 15:42
No end tag (</div>)回复
游金川2号|2017-3-22 23:00
回复 ZN东: 正解回复
ZN东|2016-12-27 09:13
添加一个jsp-api.jar和servlet-api.jar包就OK了一般在tomcat里有回复
阅读全文
0 0
- jsp页面引入css文件报错 javax.servlet cannot be resolved to a type
- jsp页面引入css文件报错 javax.servlet cannot be resolved to a type
- jsp页面文件报错 javax.servlet 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.JspException 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.JspException 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错误的解决办法
- javax.servlet.jsp.JspException cannot be resolved to a type
- javax.servlet.jsp.JspException 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
- 最详细的 Win10 系统安装教程
- C++复制构造函数和赋值符的区别
- 有趣的算法、逻辑面试题
- 解决SimpleAdapter实现的瀑布流不能点击的问题(item中有button)
- JavaScript设计前端模板初步理解
- jsp页面文件报错 javax.servlet cannot be resolved to a type
- CentOS6.4下Mysql数据库的安装与配置
- ASP.NET缓存:System.Web.Caching.Cache类和缓存依赖
- iOS系统及微信中不支持audio自动播放
- BZOJ4878: [Lydsy2017年5月月赛]挑战NP-Hard
- C#学习笔记(三)—–C#高级特性:匿名方法
- 8 Tactics to Combat Imbalanced Classes in Your Machine Learning Dataset
- 商业模式有哪些?
- 网页设计与制作(HTML+CSS)(二)