Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

.tld files

 
Phillipe Rodrigues
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
Phillipe Rodrigues
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any difference between struts 1.3.5 and struts 1.3.8?
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic