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

前端 未结 22 1687
情书的邮戳
情书的邮戳 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:34

    If your tld's are on the classpath, typically under the WEB-INF directory, the following two tips should resolve the issue (irrespective of your environment setup):

    1. Ensure that the in the TLD and the uri in the taglib directive of your jsp pages match. The element of the tld is a unique name for the tag library.

    2. If the tld does not have a element, the Container will attempt to use the uri attribute in the taglib directive as a path to the actual TLD. for e.g. I could have a custom tld file in my WEB-INF folder and use the path to the this tld as the uri value in my JSP. However, this is a bad practice and should be avoided since the paths would then be hardcoded.

提交回复
热议问题