This is an extract of taglib directive definition
(http://java.sun.com/products/jsp/syntax/1.2/syntaxref1211.html )

Taglib Directive
Defines a tag library and prefix for the custom tags used in the JSP page. 

JSP Syntax
<%@ taglib uri="URIForLibrary" prefix="tagPrefix" %>

XML Syntax
None. However, see <jsp:root>. 

Examples
<%@ taglib uri="http://www.jspcentral.com/tags"; prefix="public" %>      
        
<public:loop>   
   ...  
</public:loop>

Description
The taglib directive declares that the JSP page uses custom tags, names the
tag library that defines them, and specifies their tag prefix. 

You must use a taglib directive before you use the custom tag in a JSP page.
You can use more than one taglib directive in a JSP page, but the prefix
defined in each must be unique. 

Tutorials on creating custom tags are available at
http://java.sun.com/products/jsp/taglibraries.html#tutorials. 

Attributes
uri="URIForLibrary" 

The Uniform Resource Identifier (URI) that uniquely locates the TLD that
describes the set of custom tags associated with the named tag prefix. A URI
can be any of the following: 

A Uniform Resource Locator (URL), as defined in RFC 2396, available at
http://www.hut.fi/u/jkorpela/rfc/2396/full.html 
A Uniform Resource Name (URN), as defined in RFC 2396 
An absolute or relative pathname 

If the URI is a URL or URN, then the TLD is located by consulting the
mapping indicated in web.xml extended using the implicit maps in the
packaged tag libraries. If URI is pathname, it is interpreted relative to
the root of the web application and should resolve to a TLD file directly,
or to a JAR file that has a TLD file at location META-INF/taglib.tld. 

prefix="tagPrefix" 

The prefix that precedes the custom tag name, for example, public in
<public:loop>. Empty prefixes are illegal. If you are developing or using
custom tags, you cannot use the tag prefixes jsp, jspx, java, javax,
servlet, sun, and sunw, as they are reserved by Sun Microsystems.

-----Message d'origine-----
De�: Lars Nielsen Lind [mailto:[EMAIL PROTECTED] 
Envoy�: lundi 25 octobre 2004 21:37
��: 'Tomcat Users List'
Objet�: RE: Jakarta-Tomcat and Image Tag Library - SOLUTION

Hi.

I have found a solution to my problem.

In web.xml (webapp)/WEB-INF/web.xml I changed:

<taglib-uri>http://jakarta.apache.org/taglibs/image-1.0</taglib-uri>

to

<taglib-uri>TEST</taglib-uri>

and now it is working...


Lars Nielsen Lind

-----Original Message-----
From: Lars Nielsen Lind [mailto:[EMAIL PROTECTED] 
Sent: 24. oktober 2004 17:50
To: 'Tomcat Users List'
Subject: RE: Jakarta-Tomcat and Image Tag Library

Hi.

I have now located an error msg in jakarta-tomcat:


StandardContext[]ImageTag error: Cannot get ../../../images/employees/<%=
employee_image %>
StandardContext[]The exception was: 
- Javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: No trusted certificate found


Lars Nielsen Lind


-----Original Message-----
From: Lars Nielsen Lind [mailto:[EMAIL PROTECTED] 
Sent: 24. oktober 2004 16:27
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Jakarta-Tomcat and Image Tag Library

Hi.

It was not that...

I also have tried with this, but it will not display any images...

<img:image
        src="../../../images/employees/<%= employee_image %>"
        name=<%= employee_image %>>

        <img:resize scale="50%" />
</img:image>

Lars Nielsen Lind

-----Original Message-----
From: Ben Souther [mailto:[EMAIL PROTECTED] 
Sent: 24. oktober 2004 16:19
To: Tomcat Users List
Subject: RE: Jakarta-Tomcat and Image Tag Library

Not familiar with the tag-lib but try:
 src="images/employees/<%= employee_image %>"

NOTE: no "/" at the beginning of the relative url



On Sun, 2004-10-24 at 10:13, Lars Nielsen Lind wrote:
> Hi.
> 
> I use:
> 
> Jakarta-Tomcat-5.0.25
> J2SDK1.4.2_04
> Image Taglib 1.0 (from binaries)
> 
> There is no error msg.
> 
> I have copied taglibs-image.jar to /WEB-INF/lib.
> I have copied pjatools.jar to /WEB-INF/lib
> I have copied com.mullasseny.imaging... to /WEB-INF/classes/com/...
> I have copied taglibs-image.tld to /WEB-INF
> 
> I have added the following lines to /WEB-INF/web.xml:
> 
> <taglib>
>       <taglib-uri>http://jakarta.apache.org/taglibs/image-1.0</taglib-uri>
>       <taglib-location>/WEB-INF/taglibs-image.tld</taglib-location>
> </taglib>
> 
> 
> At the top of the *.jsp page:
> 
> <%@ taglib uri=http://jakarta.apache.org/taglibs/image-1.0 prefix="img" %>
> 
> Below at the same *.jsp page:
> 
> <img:image
>       src="/images/employees/<%= employee_image %>"
>       name=<%= employee_image %>
> 
>       <img:resize scale="50%" />
> </img:image>
> 
> 
> 
> Lars Nielsen Lind
> 
> 
> 
> 
> -----Original Message-----
> From: QM [mailto:[EMAIL PROTECTED] 
> Sent: 24. oktober 2004 15:56
> To: Tomcat Users List
> Subject: Re: Jakarta-Tomcat and Image Tag Library
> 
> On Sun, Oct 24, 2004 at 03:42:28PM +0200, Lars Nielsen Lind wrote:
> : I am having some trouble making the Jakarta Image Tag Library work. I do
> as
> : outlined in the documentation but I am not apple to display any images.
> 
> As we're not clairvoyant, you'd do well to provide details if you want
> help:
> 
> - what "documentation" did you read?  If you provide the URL(s), someone
>   here may notice those docs are out of date
> 
> - what version of Tomcat do you use?
> 
> - what version of the Image taglib do you use?
> 
> - what error message do you get, if any?
> 
> - what's the source of the JSP that calls the taglib?
> 
> etc., etc.
> 
> -QM


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



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