• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

My application can't detecting struts tlds

 
Hari Kumarkar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WEB_INF?

Should be WEB-INF!
 
Abhijeet Nalawade
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In addition to this, we need to add the <taglib> declaration to the web.xml.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65218
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Alaa Nassef
Ranch Hand
Posts: 471
Hibernate Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Hari Kumarkar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 471
Hibernate Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic