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!
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/
"Sergio" <sme...@gfdgbfdgfd.libero.it> wrote in message
news:194Z243Z191Z10Y...@usenet.libero.it...
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...
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...