IDEA maven项目创建Web时 JSP如何使用标签

来源:互联网 发布:windows恶意删除工具 编辑:程序博客网 时间:2024/05/23 10:59

在JSP使用引入

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>红线报错

需要引入依赖:

<dependency>      <groupId>taglibs</groupId>      <artifactId>standard</artifactId>      <version>1.1.2</version>    </dependency>    <dependency>      <groupId>jstl</groupId>      <artifactId>jstl</artifactId>      <version>1.2</version>    </dependency>    <dependency>      <groupId>javax.servlet</groupId>      <artifactId>serviceable-api</artifactId>      <version>3.1.0</version>    </dependency>

IDEA默认是关闭EL表达式的:手动开启:

<%@ page ignored="false" %>


原创粉丝点击