wood burning stoves 2.0*
The moose likes JSP and the fly likes Tag library descriptor file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Tag library descriptor file" Watch "Tag library descriptor file" New topic
Author

Tag library descriptor file

Vinod Awar
Ranch Hand

Joined: Nov 06, 2006
Posts: 125
Hi all,

iam learning jstl.i have added standard.jar and jstl.jar to my classpath.
iam using Eclipse Exadel studio.I wrote some sample code using jstl core tags.But i have read that for using tag libraries i must put a corresponding .tld file for each tag library in /WEB-INF directory and use taglib element in web.xml to include tag library.But i dont find any .tld file in my /WEB-INF directory and taglib element in web.xml.Are they optional?

Thanks,
Vinod


The biggest bankruptcy is the loss of enthusiasm
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

You don't have to do it anymore. The container will look for the tlds in different places, like for example in the META-INF directory of your jar files. All you have to do is explained here :
http://faq.javaranch.com/view?JstlTagLibDefinitions


[My Blog]
All roads lead to JavaRanch
Vinod Awar
Ranch Hand

Joined: Nov 06, 2006
Posts: 125
But what about taglib element of web.xml file?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

You don't need it either. The container will automatically map the uri from the TLD.
Vinod Awar
Ranch Hand

Joined: Nov 06, 2006
Posts: 125
ok. Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tag library descriptor file
 
Similar Threads
missing struts*.tld files
Tag library
HFSJ Mock question On page 487
Tag Library and Tag Library Descriptor
no need for <taglib> tag in the web.xml