You do know that all the tlds are in the jar (under META-INF/tlds/*.tld), and should have autoregistered under your webapp?

You're supposed to be able to refer to tlds in jsps like so:
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"; prefix="bean" %>

...without even registering them in your web.xml, if your JSP engine is compliant with JSP 1.2. (the URI has to match the one in the tld file in the jar). There's a decent explanation in this article:
<http://www.onjava.com/pub/a/onjava/2001/10/10/jsp.html?page=2>
it doesnt say it there, but the spec does say it the engine should search for tlds in META-INF /and its subdirectories/, in case you think the struts setup is wrong.


-Baz

Olivier Lamy wrote:

Hello,
Is there anyway to set a dependency for the struts tlds in
http://www.ibiblio.org/maven/struts/tlds/ repository.
I try this :
<dependency>
<groupId>struts</groupId>
<artifactId>tlds</artifactId>
<version>1.1-rc2</version>
<type>tld</type>
</dependency>

But is there a possibility to get all the tlds file in the 1.1-rc2 version
without specify it one by one ?
Olivier


--------------------------------------------------------------------- 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