This week's book / license giveaways are in the JDBC and Relational Databases and Java in General forums.
We're giving away four copies each of PostGIS in Action and Java Advanced Topics Training and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Problem with Struts 2 TLDs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with Struts 2 TLDs" Watch "Problem with Struts 2 TLDs" New topic

Problem with Struts 2 TLDs

adil ibnashraf

Joined: Aug 27, 2010
Posts: 10
Hi Folks,
To start with, I too am new to struts and have downloaded from struts 2 home page. After doing recommended setup by configuring struts-2.2.1 in tomcat,
I have created directory structure as given below in Tomcat 5.5 - D:\Tomcat 5.5\webapps\Web-directory\WEB-INF.
I have placed the Login.jsp in the D:\Tomcat 5.5\webapps\Web-directory .Now the problem is I am not able to find the *.tld files in D:\Tomcat 5.5\struts-2.2.1\lib. I tried downloading and also and searched there , there too i am not able to find the *tld files . Can any body help out as to how to resolve this issue.
PFB the code for Login.jsp


Adil Hussain
- I want to speak Java

Ankit Garg

Joined: Aug 03, 2008
Posts: 9339

You don't need to do anything with the Struts TLD files. Tomcat will automatically search for the TLDs in the struts jars that you put in the WEB-INF/lib directory of your application. Also you are using Struts 2 but your JSP page seems to be based on Struts 1.x tags...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link:
subject: Problem with Struts 2 TLDs