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

前端 未结 22 1767
情书的邮戳
情书的邮戳 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条回答
  •  孤街浪徒
    2020-12-12 16:38

    well you need to understand there are always two things the API and the implementation (mind the gradle format of the following code)

    compile group:'javax.servlet.jsp.jstl', name:'javax.servlet.jsp.jstl-api', version:'1.2.1'

    compile group:'org.glassfish.web', name:'javax.servlet.jsp.jstl',version:'1.2.1'

    so If you're using a servlet container with no jstl support then of course it will not provide both of them, a mistake which I made is that I only put the first one, but if you're using full stack application server i.e glassfish then glassfish will have both of them already inside.

提交回复
热议问题