jsp中${pageContext.request.contextPath}不能使用
获取绝对路径的EL表达式${pageContext.request.contextPath}
报错信息
Multiple annotations found at this line:
- javax.servlet.jsp.JspException cannot be resolved to
a type
- javax.servlet.jsp.JspException cannot be resolved to
a type
解决方法
原因:缺少servlet-api.jar和jsp-api.jar包
右击项目,选择Java Build Path>Libraries>Add External JARS,找到你计算机中的tomcat的安装路径,在common\lib文件夹下,选中"servlet-api.jar"和“jsp-api.jar”,添加点击“确定”,就行了