| 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: 4725
|
|
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: 56521
|
|
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.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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.
|
 |
 |
|
|
subject: My application can't detecting struts tlds
|
|
|