Unknown tag (c:foreach). in eclipse

前端 未结 4 814
终归单人心
终归单人心 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:43

    I was also getting this warning in eclipse. I was also getting other warnings such as:

    Unknown tag (c:if) or Unknown tag (c:set) etc.

    To fix these warning in eclipse, all i did was to include the following dependency in my pom file. Please note that I am using the servlet 2.5 api.

            
                javax.servlet
                jstl
                1.2
            
    

    You seem to be using for this dependency in your pom file. Maybe that's causing your problem ?

提交回复
热议问题