The following works for me...
<display:column headerClass="data" class="data_left_centered" title="State
Emp." sortable="true">
<img src="images/check.gif"/>
</display:column>
So put the image name and path in a request variable, and it should work.
<display:column headerClass="data" class="data_left_centered" title="State
Emp." sortable="true">
<img src="${path_to_image}"/>
</display:column>
From: miguel [mailto:[email protected]]
Sent: Friday, October 09, 2009 7:03 PM
To: [email protected]
Subject: Re: [displaytag-user] displaying images with displaytag issues
Just on a sanity check, does this work:
<display:column><img src="images/menjeans.png"
alt="Picture"></img></display:column>
?
On Fri, 2009-10-09 at 23:54 +0100, Eve Pokua wrote:
hello everyone,
I have open up this thread again because I've come to a conclusion it's a
displaytag
problem.
I've the string menjeans.png in a DB. This works for me without displaytag.
<%
String pic2="menjeans.png";%>
<img src="images/<%= pic2 %>">
With displaytag -
<display:column><img src="images/<=bpic>" alt="Picture"></img></display:column>
<display:column><img src="images/=bpic" alt="Picture"/></img></display:column>
<display:column><img src="${images/bpic}" alt="Picture"></img></display:column>
<display:column><img src="images/${bpic}" alt="Picture"></img></display:column>
None of the above works. And this -
<display:column><img src="images/<%=balpic%>"
alt="Picture"/></img></display:column>
Can't even ran my application with that.
So what is your suggestions?
I don't want to have to stop using displaytag as the picture display is an
important part of the application.
Thanking you.
regards
eve
________________________________
Have more than one Hotmail account? Link them together to easily access
both.<http://clk.atdmt.com/UKM/go/167688463/direct/01/>
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________ displaytag-user mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/displaytag-user
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.421 / Virus Database: 270.14.8/2425 - Release Date: 10/09/09
18:43:00
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user