Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL/Apache standard 1.1 lib

 
Zakas Banda
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Friends,

We are now using JSP 2.0 container (tomcat 6). With this, I would also want to upgrade to jakarta taglibs standard-1.1.2. The zip file contains three TLD files for C lib ...

A. c.tld
B. c-1_0.tld
C. c-1_0-rt.tld

And I am confused which one to use. Following are my questions:

0. What are the differences among these three TLDs?

1. We use quite a lot of EL (for ex. in <cut/>s). Does it mean (B) is the option for me?

2. Why (B) and (C) still having version number as 1.0? Is EL not the future?

I will appreciate your help.

-Z
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65111
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your pages use the correct URI for the JSTL 1.1 and the container will automatically pick the correct TLD. You don't do anything except drop the jar files into WEB-INF/lib.

Do not, under any circumstances, extract TLD files from the jar files.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65111
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, to answer your questions:

0) The 1.0 tlds are for backward compatibility with JSTL 1.0. They are of no interest to you.

1) No.

2) See (0)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic