File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes .tld files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark ".tld files" Watch ".tld files" New topic
Author

.tld files

Phillipe Rodrigues
Ranch Hand

Joined: Oct 30, 2007
Posts: 165
Hello,
I'reading a tutorial wherein its written as:

Add the following files to the c:\Project\WEB-INF\tlds directory:

c:\java\jakarta-struts-1.1\lib\struts-bean.tld
c:\java\jakarta-struts-1.1\lib\struts-html.tld
c:\java\jakarta-struts-1.1\lib\struts-logic.tld

I have struts1.3.8 available with me.I checked its lib folder but there are no .tld files present.

Request your help.


Thanks,
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The tutorial was obviously written before Struts 1.3.8. These TLD files are required for versions 1.2.9 and below, but for version 1.3.8, they are bundled in the struts-taglib-1.3.8.jar file and should not be copied to the WEB-INF folder.

Your tutorial will also no doubt tell you to use taglib declarations in your JSP that are incorrect for version 1.3.8. Here are the correct ones.
<blockquote>code:
<pre name="code" class="core"><%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
</pre>
</blockquote>


Merrill
Consultant, Sima Solutions
Phillipe Rodrigues
Ranch Hand

Joined: Oct 30, 2007
Posts: 165
Is there any difference between struts 1.3.5 and struts 1.3.8?
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
There are obviously some differences between 1.3.5 and 1.3.8, but the information I have given in my previous post is the same for both versions. For a list of differences, see the release notes.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: .tld files