Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

errore e taglib

0 views
Skip to first unread message

Ro*

unread,
May 14, 2004, 11:07:51 AM5/14/04
to
Salve, ho un problema tentando di usare le taglib di jakarta
Ho scaricato il taglibs-cache dal sito e seguendo le 'istruzioni' ho messo
il
tld sotto WEB-INF della mia webapp
e il jar corrispondente sotto WEB-INF/lib
e configurato il file xml aggiungendo:
<taglib>
<taglib-uri>http://jakarta.apache.org/taglibs/cache-1.0</taglib-uri>
<taglib-location>/WEB-INF/cache.tld</taglib-location>
</taglib>


Ma quando avvio il tomcat (4.1.29)
da l'errore:
14-mag-2004 15.42.22 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
14-mag-2004 15.42.22 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
14-mag-2004 15.42.23 org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true
14-mag-2004 15.42.28 org.apache.commons.digester.Digester error
GRAVE: Parse Error at line 7 column 50: Attribute "xmlns:xalan" must be
declared for element type "taglib".
org.xml.sax.SAXParseException: Attribute "xmlns:xalan" must be declared for
element type "taglib".
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

cha fare?
thanx!


Sergio

unread,
May 14, 2004, 11:14:24 AM5/14/04
to

Non sono un esperto ma mi sembra che l'errore sia in taglib-uri
li ci dovrebbe essere il nome con cui fare riferimento nelle pagine tipo
/tag_custom e non URL di jakarta

--------------------------------
Inviato via http://arianna.libero.it/usenet/

Ro*

unread,
May 14, 2004, 11:21:11 AM5/14/04
to
Io ho seguito 'pari pari' le indicazioni del sito...ora provo!!!!
Intanto grazie
ro*

"Sergio" <sme...@gfdgbfdgfd.libero.it> wrote in message
news:194Z243Z191Z10Y...@usenet.libero.it...

Ro*

unread,
May 14, 2004, 11:30:19 AM5/14/04
to
niente...
a questo punto ho modificato il mio web.xml con
<taglib>
<taglib-uri>/cache</taglib-uri>
<taglib-location>/WEB-INF/cache.tld</taglib-location>
</taglib>

ma guardando il .tld ho
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library
1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib xmlns:xalan="http://xml.apache.org/xslt">
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>cache</shortname>
<uri>http://jakarta.apache.org/taglibs/cache-1.0</uri>

l'errore è sempre....

14-mag-2004 17.22.54 org.apache.commons.digester.Digester error


GRAVE: Parse Error at line 7 column 50: Attribute "xmlns:xalan" must be
declared
for element type "taglib".
org.xml.sax.SAXParseException: Attribute "xmlns:xalan" must be declared for
elem
ent type "taglib".
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
known Source)

devo cambiare pure il tld?
thanx!!


"Ro*" <mio_address@mio_indirizzo.it> wrote in message
news:c82o53$d04$1...@serv1.iunet.it...

Chaplin

unread,
May 20, 2004, 5:57:32 AM5/20/04
to
Per curiosità ho scaricato jakarta-taglibs-cache-20040520.zip da:

http://cvs.apache.org/builds/jakarta-taglibs/nightly/projects/cache/

ho messo nella lib di una mia aplicazione il file "taglibs-cache.jar" e
sotto WEB-INF il file "taglibs-cache.tld"
nel web.xml

<taglib>
<taglib-uri>
http://tecnoplus/jsptag/cache
</taglib-uri>
<taglib-location>
/WEB-INF/taglibs-cache.tld
</taglib-location>
</taglib>
Riavvio Tomcat, tutto ok, nella mia pagina jsp metto:
<%@ taglib uri="http://tecnoplus/jsptag/cache" prefix="cache"%>

fatto questo riesco a vedere tranquillamente questi tag:
<cache:cache scope="" name="" key=""/>
<cache:invalidate scope="" name="" key=""/>

Una domanda, per evitarmi di leggere la documentazione, mi spieghereste
gentilmente a che servono?
Ciao Domenico.
"Ro*" <mio_address@mio_indirizzo.it> ha scritto nel messaggio
news:c82om7$el2$1...@serv1.iunet.it...

0 new messages