常见问题 1:JSTL版本冲突
Error:
The absolute uri: http://Java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
reason:
JSTL版本与servlet版本不兼容
Solution:
servlet容器不同版本下,选择对应的jstl版本即可。
具体如下:
Servlet各个版本使用jstl
Servlet 2.4
web.xml中的scheme定义
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
maven中的依赖
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<