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 My application can't detecting struts tlds Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "My application can Watch "My application can New topic
Author

My application can't detecting struts tlds

Hari Kumarkar
Greenhorn

Joined: Aug 11, 2006
Posts: 19
I have installed all the jar files and tlds e.t.c for my application but it is giving errors as :

Cannot find the tag library descriptor for /WEB_INF/tlds/struts-bean.tld
Cannot find the tag library descriptor for /WEB_INF/tlds/struts-html.tld
Ccannot find the tag library descriptor for /WEB_INF/tlds/struts-logic.tld

I request to provide suggestion to solve above probs.

Thanks
Hari
[ February 02, 2008: Message edited by: Bear Bibeault ]
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

WEB_INF?

Should be WEB-INF!


A good workman is known by his tools.
Abhijeet Nalawade
Greenhorn

Joined: Apr 01, 2007
Posts: 20
In addition to this, we need to add the <taglib> declaration to the web.xml.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60071
    
  65

Originally posted by Abhijeet Nalawade:
In addition to this, we need to add the <taglib> declaration to the web.xml.

No, you don't. If the TLDs are properly placed in the web app, no entry in the deployment descriptor is necessary.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 460
Originally posted by Bear Bibeault:

No, you don't. If the TLDs are properly placed in the web app, no entry in the deployment descriptor is necessary.


This is true in case of the servlet specifications 2.4 (J2EE 1.4), but you have to put the <taglib> declaration in older versions, which are still widely used (Especially servlets 2.3 in J2EE 1.3) till this day in a lot of companies worldwide.


Visit my blog: http://jnassef.blogspot.com/
Hari Kumarkar
Greenhorn

Joined: Aug 11, 2006
Posts: 19
Thanks for All,

Am sorry that I typed(WEB_INF) wrongly it is WEB-INF and added the <taglib> declaration to the web.xml even though it is showing the same error.

Thanks
Hari
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 460
Dear Hari,

If you are using struts-taglib-1.x.x.jar, I don't think that you need to put the tlds or define them in your web.xml in the first place. If you are using servlet version 2.4 or 2.5 (check the web-app root tag, and the doctype of your web.xml), then the presence of the tlds under WEB-INF/tld (not WEB-INF/tlds) is more than enough, and you don't need to define the location in the web.xml.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: My application can't detecting struts tlds
 
Similar Threads
My application can't detecting struts tlds...
JRun vs Tomcat, about the custom action
Final mock exam question 54
HFSJ final mock exam quetion 54 - taglib and uri
Exam question errata? help please