This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Tld files in WEB-INF 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 "Tld files in WEB-INF" Watch "Tld files in WEB-INF" New topic
Author

Tld files in WEB-INF

Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
Is is necessary to include the default standard tld files in WEB-INF folder. Isn't jstl.jar and stardard.jar sufficient to execute jstl tags in JSP Page.

I tried in tomcat 5.5.9 without the (15 standard) tld files and my jsp page executed with out any error. My friend is saying something is work. He insists tld files has to be included in WEB-INF folder. If this is the case then how my jsp page with jstl tags is working.


Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

without the (15 standard) tld files


What 15 "standard" tld files?

And yes, to use the JSTL, all you need is standard.jar and jstl.jar.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026

What 15 "standard" tld files?


To name a few

c.tld
c-1_0.tld
x.tld
fmt.tld
sql.tld

Aren't these standard tld files provide the necessary mapping between java class that provides the functionality and the jstl tags in JSP Page that calls these functions.

Then how come without these tld files the container maps the jstl tags with the java functions?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

The necessary tld files are already contained within standard.jar. There is no need to extract them and place them anywhere else. In fact, doing so is a poor idea as it makes it possible for the tlds and the jars to be out of sync with each other.
[ November 10, 2005: Message edited by: Bear Bibeault ]
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
Ya I found all the necessary tld files inside standard.jar file. Thanks Bear Bibeault
 
 
subject: Tld files in WEB-INF
 
Similar Threads
JSTL version causing exceptions?
What jar files do I need to use jstl in my jsp on tomcat 6.0.24 ?
Struts basic
The server encountered an internal error () that prevented it from fulfilling this re
getting error with JSTL tags