Eclipse “cannot find the tag library descriptor” for custom tags (not JSTL!)

前端 未结 22 1750
情书的邮戳
情书的邮戳 2020-12-12 16:33

I have a Java EE project which build fine with Ant, deploys perfectly to JBoss, and runs without any trouble. This project includes a few custom tag librari

22条回答
  •  旧时难觅i
    2020-12-12 16:54

    When I tried to include the JSTL Core Library in my JSP:

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

    I got the following error in Eclipse (Indigo):

    Can not find the tag library descriptor for "http://java.sun.com/jsp/jstl/core"
    

    I went to the Project Properties -> Targeted Runtimes, and then checked the Server I was using (Geronimo 3.0). Most people would be using Tomcat. This solved my problem. Hope it helps!

提交回复
热议问题