Mike,
I've done as suggested. Something seems to be working but not quite.
I've put the images im my web-inf folder
of my web client. Then I have stored the string in the table as
menjeans.png
then I access it as-
<display:column><img border="1" src="/WEB-INF/${balpic}" height="200"
width="200" title="Bale Picture"/></display:column>
The browser has the x thing at the colomn of the picture.
Hope I've understodd what you said but the problem is just
the browser.
:)
Please, reply.
Thank you all who replied and in advance for all your help.
eve
From: [email protected]
To: [email protected]
Date: Tue, 22 Sep 2009 12:03:45 +0100
Subject: Re: [displaytag-user] displaying image using displaytag
W Os,
I suppose I have to put the images in my web or the web-inf folder
than access as Ed wrote:
<display:column>
> <img src="../images/${bpic}"/>
> </display:column>
I will try that. You have all opened my mind and I've learnt a lot
from your repplies.
eve
> Date: Tue, 22 Sep 2009 10:39:48 +0200
> From: [email protected]
> To: [email protected]
> Subject: Re: [displaytag-user] displaying image using displaytag
>
> > 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?
>
> Hi Eve,
>
> it seems like you did not understand my first post.
>
> First of all, this guy loads a url from a db which maps to a server-side
> resource.
>
> You are trying to load a url off the server from the client's hdd. This is
> deemed to work. I have to repeat myself. Your files have to be available in
> the context or anywhere else beginning with http:// and you have your local
> harddrive.
>
> This won't work unless you want to run the server and the client on the same
> machine. As Ibrahim wrote, you need to pipe the image to the client.
>
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
Beyond Hotmail - see what else you can do with Windows Live. Find out more.
_________________________________________________________________
With Windows Live, you can organise, edit, and share your photos.
http://clk.atdmt.com/UKM/go/134665338/direct/01/------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user