i don't think so, it's a copy of tld from taglib 1.0.4 archive and it seems good
... and problem is the same when i extract tld file from standard.jar


---------------------
WEB-INF/lib/standard.jar
WEB-INF/web.xml (without taglib definition)

<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"; %>
<fmt:setLocale value="en" scope="session"/>

it works (i think it takes uri from tld inside the jar file)
--------------------
WEB-INF/tld/fmt.tld (extract from standard.jar)
WEB-INF/lib/standard.jar
WEB-INF/web.xml with taglib definition (to point to WEB-INF/tld/fmt.tld)

<%@ taglib prefix="fmt" uri="/tags/jstl-fmt" %>
<fmt:setLocale value="en" scope="session"/>

compilation error : Illegal scope attribute without var in "fmt:setLocale" tag
---------------------

ns definition for setLocal in my tld file (seems good):

<tag>
    <name>setLocale</name>
    <tag-class>org.apache.taglibs.standard.tag.el.fmt.SetLocaleTag</tag-class>
    <body-content>empty</body-content>
    <description>
        Stores the given locale in the locale configuration variable
    </description>
    <attribute>
        <name>value</name>
        <required>true</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
        <name>variant</name>
        <required>false</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
    <attribute>
        <name>scope</name>
        <required>false</required>
        <rtexprvalue>false</rtexprvalue>
    </attribute>
  </tag>





At 15:30 2003-12-09, you wrote:
        Then, maybe there is some sintaxe error in your TLD. What do you
have inside /WEB-INF/tld/fmt.tld?

> ----------
> De:   Maxime Colas des Francs[SMTP:[EMAIL PROTECTED]
> Responder:    Tomcat Users List
> Enviada:      ter�a-feira, 9 de dezembro de 2003 15:38
> Para:         Tomcat Users List
> Assunto:      RE: fmt setLocale
>
> What do you get from Sun ? jar files ?
>
> Standard Taglib 1.0.4 jars are in my WEB-INF/lib
> Tomcat seems to have a pb when it get tld from file specified in web.xml ?
>
> At 12:14 2003-12-09, you wrote:
> >         Usually Standard Taglibs we get from Sun�s servers, do you have
> JSTL
> >in your local machine?
> >
> > > ----------
> > > De:   Maxime Colas des Francs[SMTP:[EMAIL PROTECTED]
> > > Responder:    Tomcat Users List
> > > Enviada:      ter�a-feira, 9 de dezembro de 2003 13:14
> > > Para:         [EMAIL PROTECTED]
> > > Assunto:      fmt setLocale
> > >
> > > Hi all,
> > >
> > > I have a strange pb with my tomcat 4.1.29 and jstl
> > >
> > > this jsp works :
> > > <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"; %>
> > > <fmt:setLocale value="en" scope="session"/>
> > >
> > > this one not :
> > > <%@ taglib prefix="fmt" uri="/tags/jstl-fmt" %>
> > > <fmt:setLocale value="en" scope="session"/>
> > >
> > > (+ in web.xml
> > >     <taglib>
> > >      <taglib-uri>/tags/jstl-fmt</taglib-uri>
> > >      <taglib-location>/WEB-INF/tld/fmt.tld</taglib-location>
> > >    </taglib>
> > >   and tld at the right place)
> > >
> > > compilation error is : Illegal scope attribute without var in
> > > "fmt:setLocale" tag
> > >
> > > Someone can explain this difference ?
> > >
> > > thks
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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