Struts - In which jar file all the .tld files located
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
Amit
Updated on September 22, 2020Comments
-
Amit over 3 years
I am developing a
Struts
based web application. I am new toStruts
. I want to usestruts-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 aJavaranch
answer that these.tld
files are packed intostruts-taglib.jar
file. I downloaded the full struts libraries but didn't find that jar file. -
Buhake Sindi about 14 yearsStruts 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 about 14 yearsI am using
struts 2.1.8.1
. I have droppedstruts2-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 about 14 yearsCheck my answer to that question @Yatendra Goel