Micheal/ Ibraham.

 

Thank you all.

 

 

But I am still having problems

 

<display:table name="sessionScope.ent" uid="datum" defaultsort="1" 
defaultorder="descending" pagesize="7" class="tabledata">
                            <display:column property="bid" title="code"/>
                            <display:column property="bname" title="Name"/>
                            <display:column property="description" 
title="Description"/>
                            <display:column property="colour" title="Colour "/>

                            <display:column property="bpic" title="Picture"/>

                             <td>
                                 <div style=""><img border="1" 
src="c:/bapics/<%=(bpic)%>"      height="160" width="160"  
title="picture2"/></div>

                                </td>

</display:table>

 

 

I have the string Dock.jpg in an attribute in the table

If I use this:

<display:column property="bpic" title="Picture"/>

the string Dock.jpeg is displayed but not as image.

 

All I want to do is tell the img tag src to display whatever .jpeg is in the 
bpic attribute
to be display as image. Why I'm I having so much problems?

 

It seems to work for this guy.-

 

http://www.coderanch.com/t/453478/JSP/java/Displaying-images-dynamically-from-database

 

Please, help.

thanks

eve
 


Date: Sun, 20 Sep 2009 13:32:36 -0700
From: ibrmust...@yahoo.com
To: displaytag-user@lists.sourceforge.net
Subject: Re: [displaytag-user] displaying image using displaytag

<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 it
is 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.  And
I'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&reg; 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&#45;12, 2009. Register now&#33;
> 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 
------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; 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&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user
                                          
_________________________________________________________________
Get the best of MSN on your mobile
http://clk.atdmt.com/UKM/go/147991039/direct/01/
------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; 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&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to