JSTL TLD confusion

2005-09-07 Thread Woodchuck
hihi all,

in the Struts (1.2.7) distribution it includes what i thought was
everything you would need to use JSTL.  namely, the standard.jar and
jstl.jar (found under the struts/contrib/struts-el/lib folder).

however, these jars are missing functions.tld file.

then i discovered that the Jakarta Standard 1.1 Taglib distribution
also comes with it's own versions of standard.jar and jstl.jar, and it
has a fn.tld which contains the JSTL functions i want to use.

also, i noticed the Struts JSTL tlds have URIs like this:
urihttp://java.sun.com/jstl/core/uri

while the Jakarta Standard 1.1 Taglib JSTL have slightly different URIs
like this:
urihttp://java.sun.com/jsp/jstl/core/uri

which is the 'official' version we should be using?  why are there such
differences between these versions?

woodchuck




__
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSTL TLD confusion

2005-09-07 Thread TroyGeek
I believe you can only use JSTL 1.1 if you're using Servlet Spec 2.4 (like 
Tomcat 5) or something like that.
 thanks!
 ~ T r o y ~

 On 9/7/05, Woodchuck [EMAIL PROTECTED] wrote: 
 
 hihi all,
 
 in the Struts (1.2.7) distribution it includes what i thought was
 everything you would need to use JSTL. namely, the standard.jar and
 jstl.jar (found under the struts/contrib/struts-el/lib folder).
 
 however, these jars are missing functions.tld file.
 
 then i discovered that the Jakarta Standard 1.1 Taglib distribution
 also comes with it's own versions of standard.jar and jstl.jar, and it
 has a fn.tld which contains the JSTL functions i want to use.
 
 also, i noticed the Struts JSTL tlds have URIs like this:
 urihttp://java.sun.com/jstl/core/uri
 
 while the Jakarta Standard 1.1 Taglib JSTL have slightly different URIs
 like this:
 urihttp://java.sun.com/jsp/jstl/core/uri
 
 which is the 'official' version we should be using? why are there such
 differences between these versions?
 
 woodchuck
 
 
 
 
 __
 Click here to donate to the Hurricane Katrina relief effort.
 http://store.yahoo.com/redcross-donate3/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: JSTL TLD confusion

2005-09-07 Thread Martin Cooper
On 9/7/05, Woodchuck [EMAIL PROTECTED] wrote:
 
 hihi all,
 
 in the Struts (1.2.7) distribution it includes what i thought was
 everything you would need to use JSTL. namely, the standard.jar and
 jstl.jar (found under the struts/contrib/struts-el/lib folder).
 
 however, these jars are missing functions.tld file.
 
 then i discovered that the Jakarta Standard 1.1 Taglib distribution
 also comes with it's own versions of standard.jar and jstl.jar, and it
 has a fn.tld which contains the JSTL functions i want to use.



Struts 1.2.x ships with JSTL 1.0.2, which is why it's missing the functions 
taglib. That was only added in JSTL 1.1. 

also, i noticed the Struts JSTL tlds have URIs like this:
 urihttp://java.sun.com/jstl/core/uri
 
 while the Jakarta Standard 1.1 Taglib JSTL have slightly different URIs
 like this:
 urihttp://java.sun.com/jsp/jstl/core/uri
 
 which is the 'official' version we should be using? why are there such
 differences between these versions?


Because the JSTL spec defines different URLs for JSTL 1.0 and JSTL 1.1. ;-)

--
Martin Cooper


woodchuck
 
 
 
 
 __
 Click here to donate to the Hurricane Katrina relief effort.
 http://store.yahoo.com/redcross-donate3/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Re: JSTL TLD confusion

2005-09-07 Thread Rahul Akolkar
On 9/7/05, Martin Cooper [EMAIL PROTECTED] wrote:
 On 9/7/05, Woodchuck [EMAIL PROTECTED] wrote:
snip/
 
  which is the 'official' version we should be using? why are there such
  differences between these versions?
 
 
 Because the JSTL spec defines different URLs for JSTL 1.0 and JSTL 1.1. ;-)
snap/

And for the answer to why the spec defines different URLs, follow the
second FAQ entry here [
http://wiki.apache.org/jakarta-taglibs/FrequentlyAskedQuestions ]

-Rahul

 
 --
 Martin Cooper
 
 
 woodchuck

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]