tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Souther <bsout...@fwdco.com>
Subject RE: Jakarta-Tomcat and Image Tag Library
Date Sun, 24 Oct 2004 14:18:50 GMT
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:qm300@brandxdev.net] 
> 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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message