Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/378.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 无法识别JSP JSTL和其他指令_Java_Jsp_Jstl_Directive_Taglib - Fatal编程技术网

Java 无法识别JSP JSTL和其他指令

Java 无法识别JSP JSTL和其他指令,java,jsp,jstl,directive,taglib,Java,Jsp,Jstl,Directive,Taglib,在浏览了许多以前回复过的帖子之后,我仍然无法找到解决我所面临问题的方法。在我的JSP中,所有指令都不起作用。我主要专注于工作 我还检查了include指令和。JSP正在指示所有这些指令的错误。我在pom.xml文件中添加了以下依赖项 jstl jstl 1.2 此外,还将jstl1.2、taglibs-standard-impl-1.2.5 JAR下载到了我的WEB-INF/lib文件夹中,但似乎没有任何效果 My web.xml以以下内容开头: < ?xml version="1.0"

在浏览了许多以前回复过的帖子之后,我仍然无法找到解决我所面临问题的方法。在我的JSP中,所有指令都不起作用。我主要专注于工作

我还检查了include指令和。JSP正在指示所有这些指令的错误。我在pom.xml文件中添加了以下依赖项 jstl jstl 1.2 此外,还将jstl1.2、taglibs-standard-impl-1.2.5 JAR下载到了我的WEB-INF/lib文件夹中,但似乎没有任何效果

My web.xml以以下内容开头: < ?xml version="1.0" encoding="UTF-8"?> < web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0"> <?xml version=“1.0”encoding=“UTF-8”>

我还需要检查哪些地方才能使用JSTL core taglib

指示错误:

Multiple annotations found at this line: - Invalid text string (<%@ page contentType="text/html; charset=UTF-8" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> ). - Invalid character used in text string (<%@ page contentType="text/html; charset=UTF-8" %> <%@ taglib prefix="c" uri="http://java.sun.com/ jsp/jstl/core"%> ). 在此行找到多个批注: -无效的文本字符串(<%@page contentType=“text/html;charset=UTF-8”%><%@taglib prefix=“c”uri=”http://java.sun.com/jsp/jstl/core"%> ). -文本字符串中使用了无效字符(<%@page contentType=“text/html;charset=UTF-8”><%@taglib prefix=“c”uri=”http://java.sun.com/ jsp/jstl/core“%>)。 提前感谢,