Dirk,

Would you let me know which "spec" you refered to in this thread? I am trying to 
understand a JSTL core taglib issue that we are having.

Our issue was resolved with the workaround: changing the URI attribute of our JSP 
<[EMAIL PROTECTED]> directives from "/jstl-core" to "http://java.sun.com/jstl/core"; in 
the pages where we used the setFormat tag. 

Note "/jstl-core" was defined in our web.xml as
  <taglib>
    <taglib-uri>/jstl-core</taglib-uri>
    <taglib-location>/WEB-INF/tld/c.tld</taglib-location>
  </taglib>

However, our specific issue (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15703) 
was supposedly fixed in JSTL 1.0.5. Release notes: 
http://jakarta.apache.org/taglibs/doc/standard-1.0-doc/ReleaseNotes.html.

Presumably this fix would not require the above workaround. I would have thought JSTL 
1.1 would not have this seemingly similar kind of issue. It seems counter intuitive to 
me that the URI should be a fixed value. Maybe I am missing something.

I have read how-to pages which say to do this, but I have not seen any specification. 
Any light you can shed would be greatly appreciated.

Thanks in advance for any help, 

Douglas Ross
Developer, HTML UI Framework
Kronos
E-mail: [EMAIL PROTECTED]
Voice: (978) 947-4305
Fax: (978) 256-2474
www.kronos.com
Smaller, Faster, Sharper, Easier(tm)

-----Original Message-----
From: Dirk Manske (Mailing list) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 06, 2004 6:01 AM
To: 'Tag Libraries Users List'
Subject: AW: JSTL 1.1: diffs between c and c-1_0

I am using the jstl 1.1.1 version with the following web.xml declaration:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd"
    version="2.4">

  <servlet>
    <servlet-name>springapp</servlet-name>
 
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-cl
ass>
    <load-on-startup>1</load-on-startup>
  </servlet>

  <servlet-mapping>
    <servlet-name>springapp</servlet-name>
    <url-pattern>*.htm</url-pattern>
  </servlet-mapping>

  <welcome-file-list>
    <welcome-file>
      index.jsp
    </welcome-file>
  </welcome-file-list>
  
  <taglib>
    <taglib-uri>jstl/c</taglib-uri>
    <taglib-location>/WEB-INF/tld/c.tld</taglib-location>
  </taglib>
   <taglib>
    <taglib-uri>jstl/fmt</taglib-uri>
    <taglib-location>/WEB-INF/tld/fmt.tld</taglib-location>
  </taglib>

</web-app>


I am still facing the problem, that variables are not evaluated when using
the c taglib. But it works when using c-1_0...
Tomcat version is 5.0.28. Any help appreciated.

Dirk
 

-----Ursprüngliche Nachricht-----
Von: Felipe Leme [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 6. Oktober 2004 02:18
An: Tag Libraries Users List
Betreff: Re: JSTL 1.1: diffs between c and c-1_0

On Tue, 2004-10-05 at 20:03, Dirk Manske (Mailing list) wrote:

> I upgraded to JSTL 1.1 because we are now using Tomcat 5. At first I 
> tried the c.tld taglib. But this did not work. For example the result 
> of <c:out value="${aVariable}" /> for aVariable set to 100 was simply 
> ${aVariable} instead of 100.

Did you use the proper jars? You *must* use JSTL 1.1 on Tomcat 5, as it is a
JSP 2.0 container.

Note also that on JSP 2.0, the EL evaluation is done by the container (not
the tag handlers) but your application must be set with the proper web.xml
header (i.e., the one that uses the servlet 2.4 XML schema, and not the
servlet 2.3 DTD).

-- Felipe



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


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


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

Reply via email to