Struts - In which jar file all the .tld files located

38,585

Solution 1

It's not clear which version of Struts you're using but the TLD you are referring to is a Struts 1 TLD.

In Struts 1.3.10, it is bundled in struts-taglib-1.3.10.jar/META-INF/tld/struts-html.tld which is distributed in struts-1.3.10-lib.zip. In Struts 1.2.9, you'll find it in the root of struts-1.2.9-lib.zip.

Just in case, note that Struts 2 uses a completely different tag library than Struts 1 and there is only one taglib instead of several. The corresponding TLD is located in struts2-core-2.1.8.1.jar/META-INF/struts-tags.tld.

Solution 2

struts2-core-2.2.1.1.jar will contain the TLD file at the following location struts2-core-2.2.1.1.jar/META-INF/struts-tags.tld

Share:
38,585
Amit
Author by

Amit

Updated on September 22, 2020

Comments

  • Amit
    Amit over 3 years

    I am developing a Struts based web application. I am new to Struts. I want to use struts-html.tld taglib, provided by struts, in my jsp pages.

    When I searched on net, I came to know that prior to Struts 1.2.9, we need to locate the .tld files manually.

    But now these .tld files are packed in .jar files and we need to just use those jar files as any other jar file in our project.

    Q1. So my question is in Which jar file these .tld files are located. I came to know from a Javaranch answer that these .tld files are packed into struts-taglib.jar file. I downloaded the full struts libraries but didn't find that jar file.

  • Buhake Sindi
    Buhake Sindi about 14 years
    Struts 2 tags are not compatible on Struts 1 tags. Actually Struts 2 is from the WebWork 2 project. It won't work on Struts 1.
  • Amit
    Amit about 14 years
    I am using struts 2.1.8.1. I have dropped struts2-core-2.1.8.1.jar in \WEB-INF\lib directory. After that I have used <%@ taglib prefix="html" uri="/struts-tags"> in one of my jsp pages in which I want to use <html:form> tags provided by struts. But I got one exception which you could see at question stackoverflow.com/questions/2395364/…
  • Buhake Sindi
    Buhake Sindi about 14 years
    Check my answer to that question @Yatendra Goel