文章目录
1 jar包依赖 2 tomcat lin目录
在此之前,已在IDEA中引入jar包,分别为:jstl-api-1.2.jar,jstl-impl-1.2.jar
还应该将上述两个jar包也放入tomcat的lib文件夹下,修改后运行,页面成功显示
<%-- Created by IntelliJ IDEA. User: lixiang Date: 2020/8/8 Time: 10:50 上午 To change this template use File | Settings | File Templates. --%> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <html> <head> <title>Title</title> </head> <body> <c:if test="true">gunba</c:if>> </body> </html>