The image tag I am referring to, <img:image> is NOT HTML but rather the Jakarta 
taglib as the last poster mentioned.

Neither this: 

<img:image src='${path}' />

nor this: 

<img:image src='<c:out value="${path}"/>' />

not this: 

<img:image src='<%= (String)pageContext.getAttribute("path") %>'/>

works. If I put ${path} alone it doesn't process it. If I put either of the 
other 2 it says the <img> tag is missing its right-hand component.

I downloaded jstl 1.1 (the jar that comes with Java SDK 1.4, appserv-jstl.jar, 
right?) and got rid of my old jstl.jar and standard.jar and ${path} all by 
itself, without <c:out> still doesn't work.

In my web.xml I changed the first line from :

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>

to:

<web-app xmlns="http://java.sun.com/xml/ns/j2ee";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
            http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
        version="2.4">

and my  tomcat/common/lib/servlet-api.jar is verison 2.4. And it's still not 
working.

*Sigh*

Thanks for all your help guys ...
Bob

Kris Schneider <[EMAIL PROTECTED]> wrote: Martin Cooper wrote:
> On 5/17/06, Hassan Schroeder  wrote:
> 
>>
>> Robert Bowen wrote:
>>
>> > No, "path = ${path} does not work. I am using JSTL 1.0 and Servlet 2.4.
>> >
>> > So can I do this? ...Without changing versions of JSTL / Servlet?
>>
>> short answer: no. Though I'm not sure where that 
>> from, haven't used it myself.
> 
> 
> 
> Uh, that would be HTML...

;-) I had a WTF moment when I read your previous reply because I assumed it 
was the Image taglib:

http://jakarta.apache.org/taglibs/sandbox/doc/image-doc/intro.html

> -- 
> Martin Cooper
> 
> 
> But if you're using a 2.4 deployment descriptor -- check what's at
> 
>> the beginning of your application's web.xml -- upgrading to JSTL 1.1
>> is as simple as downloading and replacing a couple of jar files...
>>
>> And well worth it, IMO -- replacing all those ``
>> statements with `${path}` cleans up a workspace most wonderfully :-)
>>
>> FWIW!
>> -- 
>> Hassan Schroeder ----------------------------- [EMAIL PROTECTED]
>> Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
>>                 opinion: webtuitive.blogspot.com
>>
>>                           dream.  code.

-- 
Kris Schneider 
D.O.Tech       

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



                
---------------------------------
Love cheap thrills? Enjoy PC-to-Phone  calls to 30+ countries for just 2ยข/min 
with Yahoo! Messenger with Voice.

Reply via email to