<c:url value="/showImage.html?prodId=" var="showImage" />
<display:column media="html" title="Icon"><img src="${showImage}${currItem.id}" alt="Icon" class="prod_icon" />
</display:column>My /showImage.html is a servlet (spring web mvc controller) that takes the entity id and streams back the image binary.
It can be as simple as the path to the location of your image on the disk. Eve Pokua wrote:
Mike,Ok, could you or anyone point me to any displaytag example in which itis displaying images or pictures. E.g-How would you do it with this? http://displaytag.homeip.net/displaytag-examples-1.2/example-columns.jsp.source Forget about my problem. Provide me an answer to the above example. AndI'll sort my problem out.thank you. eve > Date: Sun, 20 Sep 2009 21:04:34 +0200> From: sg...@gmx.net > To: displaytag-user@lists.sourceforge.net > Subject: Re: [displaytag-user] displaying image using displaytag > > > Hello, > > > > > > > > I have data in the Database, using displaytag I am able > > > > to display data using sessionScope. Data is collected from > > > > a servlet and forward to a jsp. I want to display pictures or images > > > > with each data row collected. Since I am using database sql server to > >> > store the data, I have an attribute which is a string / varchar type which> > > > contains details of the directory I store my pics. E.g - directory > > > > > > > > C:\java\pictues > > > > > > > > picture > > > > > > > > C:\java\pictues\for.jpeg > > > > > > > > Now I just have to use the img src= to display the pictures. > > Hi Eve, >> your problem is completely out of scope. This isn't a displaytag problem. You merely have the problem to serve your files from your context. This is it. Either make them available there or write a proxy servlet.> > Mike > -- > GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 >> ------------------------------------------------------------------------------> Come build with us! The BlackBerry® 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/devconf > _______________________________________________ > displaytag-user mailing list > displaytag-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/displaytag-user ------------------------------------------------------------------------Upgrade to Internet Explorer 8 Optimised for MSN. Download Now <http://extras.uk.msn.com/internet-explorer-8/?ocid=T010MSN07A0716U>------------------------------------------------------------------------ ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart yourdeveloping 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/devconf ------------------------------------------------------------------------ _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user
<<attachment: ibrmustafa.vcf>>
------------------------------------------------------------------------------ Come build with us! The BlackBerry® 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/devconf
_______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user