Unknown tag (c:foreach). in eclipse

前端 未结 4 809
终归单人心
终归单人心 2020-12-09 20:40

I have jstl code and it builds by maven well... But Eclipse had compilation error \"Unknown tag (c:foreach).\"

code are here:

<%@ page language=\         


        
4条回答
  •  南方客
    南方客 (楼主)
    2020-12-09 20:54

    What you actually need is to add the following line on top of your JSP files:

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

    Also, you need to download the JSTL jar files from here and add them to WEB_INF/lib folder.

    Found my answer here: https://stackoverflow.com/a/8400733/3758439

提交回复
热议问题