• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

My application can't detecting struts tlds

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
WEB_INF?

Should be WEB-INF!
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In addition to this, we need to add the <taglib> declaration to the web.xml.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 471
Mac OS X Hibernate Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac OS X Hibernate Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic