JSP JSTL和其他指令无法识别

时间:2016-04-24 22:20:02

标签: java jsp jstl directive taglib

经过大量以前回复过的帖子后,我仍然无法找到解决我面临的问题的方法。在我的JSP中,没有一个指令正在工作。我主要专注于获得<%@ taglib prefix =" c" URI =" HTTP://java.sun.com/jsp/jstl/core"%>工作。

我还检查了include指令和<%@ page contentType =" text / html;字符集= UTF-8" %GT; 。 JSP指示所有这些指令的错误。我已将以下依赖项添加到我的pom.xml文件中                      JSTL             JSTL             1.2          另外,将jstl1.2,taglibs-standard-impl-1.2.5 jars下载到我的WEB-INF / lib文件夹中,但似乎没什么用。

我的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">

开头

我需要检查哪些其他地方才能使用JSTL核心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"%> ).

提前致谢,

0 个答案:

没有答案