displaying images with displaytag issues

View: New views
16 Messages — Rating Filter:   Alert me  

displaying images with displaytag issues

by eveeve :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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.
------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Re: displaying images with displaytag issues

by wild_oscar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.
------------------------------------------------------------------------------
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 displaytag-user@... https://lists.sourceforge.net/lists/listinfo/displaytag-user

------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Re: displaying images with displaytag issues

by Paul Cooper-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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:miguel@...]
Sent: Friday, October 09, 2009 7:03 PM
To: displaytag-user@...
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.

 
------------------------------------------------------------------------------
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 displaytag-user@... 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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Re: displaying images with displaytag issues

by eveeve :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Miguel
 
<display:column><img src="images/menjeans.png" alt="Picture"></img></display:column>
 
Yes it works.
 
but how do I display an attribute-
 
 <display:column><img src="images/${pic}" alt="Picture"></img></display:column>
 
Thank you for your quick reply.
 
eve
 

From: miguel@...
To: displaytag-user@...
Date: Sat, 10 Oct 2009 00:02:33 +0100
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.
------------------------------------------------------------------------------
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 displaytag-user@... https://lists.sourceforge.net/lists/listinfo/displaytag-user


View your other email accounts from your Hotmail inbox. Add them now.
------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Re: displaying images with displaytag issues

by Mike McNally-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What is "pic"?  Where's it b being set? Is it a column value?  When you say, "it doesn't work", how do you know that?  What does the generated HTML look like (which is to ask, what is the value of ${pic} when JSP expands that expression)?

What you need to be doing is arranging for the <img> tag to reference a URL that includes something that your server can use to load the image file.

I seriously doubt there's a displaytag issue here.


2009/10/9 Eve Pokua <gorgeous65@...>
Miguel
 
<display:column><img src="images/menjeans.png" alt="Picture"></img></display:column>
 
Yes it works.
 
but how do I display an attribute-
 
 <display:column><img src="images/${pic}" alt="Picture"></img></display:column>
 
Thank you for your quick reply.
 
eve
 

From: miguel@...
To: displaytag-user@...
Date: Sat, 10 Oct 2009 00:02:33 +0100
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.
------------------------------------------------------------------------------
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 displaytag-user@... https://lists.sourceforge.net/lists/listinfo/displaytag-user


View your other email accounts from your Hotmail inbox. Add them now.

------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user




--
Turtle, turtle, on the ground,
Pink and shiny, turn around.

------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Re: displaying images with displaytag issues

by eveeve :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hello Paul,
 
 <display:column><img src="${images/pic}" alt="Picture"></img></display:column>
 
pic is a the DB attribute.  IT should work but no.
 
<display:column><img src="images/menjeans.png" alt="Picture"></img></display:column>
 
THe above works though in the DB 'pic' attribute contains the string menjeans.png
 
So That's why I need to display it as the first line above..
 
Basically, if I have 1000 pictures to display I wouldn't want to hard code it as
 
<display:column><img src="images/menjeans.png" alt="Picture"></img></display:column>
 
Thanking you.
 
eve
 

From: pcooper@...
To: displaytag-user@...
Date: Fri, 9 Oct 2009 19:16:34 -0400
Subject: Re: [displaytag-user] displaying images with displaytag issues

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:miguel@...]
Sent: Friday, October 09, 2009 7:03 PM
To: displaytag-user@...
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.

 
------------------------------------------------------------------------------
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 displaytag-user@... 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



New! Receive and respond to mail from other email accounts from within Hotmail Find out how.
------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Re: displaying images with displaytag issues

by eveeve :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi,
 
${pic}
 
is a DB table attribute which contains the value or string -
 
menjeans.png
 
basically a picture string.
 
cod
<display:column><img src="${images/menjeans.png}" alt="Picture"></img></display:column>
                           <display:column><img src="${images/balpic}" alt="Picture"></img></display:column>
                            <display:column><img src="images/menjeans.png" alt="Picture"></img></display:column>
 
HTML generation -
 
<td><img src="0" alt="Picture"></img></td>
<td><img src="0" alt="Picture"></img></td>
<td><img src="images/menjeans.png" alt="Picture"></img></td></tr></tbody></table>
                      
 Thanking you.
 
eve

Date: Fri, 9 Oct 2009 18:54:52 -0500
From: emmecinque@...
To: displaytag-user@...
Subject: Re: [displaytag-user] displaying images with displaytag issues

What is "pic"?  Where's it b being set? Is it a column value?  When you say, "it doesn't work", how do you know that?  What does the generated HTML look like (which is to ask, what is the value of ${pic} when JSP expands that expression)?

What you need to be doing is arranging for the <img> tag to reference a URL that includes something that your server can use to load the image file.

I seriously doubt there's a displaytag issue here.


2009/10/9 Eve Pokua <gorgeous65@...>
Miguel
 
<display:column><img src="images/menjeans.png" alt="Picture"></img></display:column>
 
Yes it works.
 
but how do I display an attribute-
 
 <display:column><img src="images/${pic}" alt="Picture"></img></display:column>
 
Thank you for your quick reply.
 
eve
 

From: miguel@...
To: displaytag-user@...
Date: Sat, 10 Oct 2009 00:02:33 +0100
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.
------------------------------------------------------------------------------
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 displaytag-user@... https://lists.sourceforge.net/lists/listinfo/displaytag-user


View your other email accounts from your Hotmail inbox. Add them now.

------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user




--
Turtle, turtle, on the ground,
Pink and shiny, turn around.


Add other email accounts to Hotmail in 3 easy steps. Find out how.
------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Re: displaying images with displaytag issues

by Mike McNally-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What does your <display:table> tag look like?  Does it have an "id" attribute?




--
Turtle, turtle, on the ground,
Pink and shiny, turn around.

------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Re: displaying images with displaytag issues

by Chris Pratt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try putting this somewhere on your page, outside of your displaytag and then "View Source" to see what the value actually is:

<!-- pic = ${pic} -->

If you're correct you should see something like:

<!-- pic = menjeans.png -->

But I suspect you won't.  For that to work, something has had to initialize the pic attribute in one of the page, request, session, or application scopes, which I suspect isn't happening.

Another thing, ${images/pic} is not the same thing as images/${pic}.  The first is looking for an attribute in the above scopes named "images/pic".  The second is going to add the value of the "pic" attribute (from our comment above) to the static string images/ so in our example, you should end up with "images/menjeans.png".

But as was said before, this is basic JSP knowledge, not DisplayTag specific.  Maybe someone here can point you at a good beginners JSP list.
  (*Chris*)

2009/10/9 Eve Pokua <gorgeous65@...>
Hi,
 
${pic}
 
is a DB table attribute which contains the value or string -
 
menjeans.png
 
basically a picture string.
 
cod

<display:column><img src="${images/menjeans.png}" alt="Picture"></img></display:column>
                           <display:column><img src="${images/balpic}" alt="Picture"></img></display:column>
                            <display:column><img src="images/menjeans.png" alt="Picture"></img></display:column>
 
HTML generation -
 
<td><img src="0" alt="Picture"></img></td>
<td><img src="0" alt="Picture"></img></td>
<td><img src="images/menjeans.png" alt="Picture"></img></td></tr></tbody></table>
                      
 Thanking you.
 
eve

Date: Fri, 9 Oct 2009 18:54:52 -0500
From: emmecinque@...
Subject: Re: [displaytag-user] displaying images with displaytag issues

What is "pic"?  Where's it b being set? Is it a column value?  When you say, "it doesn't work", how do you know that?  What does the generated HTML look like (which is to ask, what is the value of ${pic} when JSP expands that expression)?

What you need to be doing is arranging for the <img> tag to reference a URL that includes something that your server can use to load the image file.

I seriously doubt there's a displaytag issue here.


2009/10/9 Eve Pokua <gorgeous65@...>
Miguel
 
<display:column><img src="images/menjeans.png" alt="Picture"></img></display:column>
 
Yes it works.
 
but how do I display an attribute-
 
 <display:column><img src="images/${pic}" alt="Picture"></img></display:column>
 
Thank you for your quick reply.
 
eve
 

From: miguel@...
To: displaytag-user@...
Date: Sat, 10 Oct 2009 00:02:33 +0100
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.
------------------------------------------------------------------------------
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 displaytag-user@... https://lists.sourceforge.net/lists/listinfo/displaytag-user


View your other email accounts from your Hotmail inbox. Add them now.

------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user




--
Turtle, turtle, on the ground,
Pink and shiny, turn around.


Add other email accounts to Hotmail in 3 easy steps. Find out how.

------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user



------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Re: displaying images with displaytag issues

by eveeve :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi,
 
I am invoking  an entity which takes data from the database and
displays it to the user.  I invoke in a servlet and the servlet forwards
data to the jsp to display.
 
That's I use displaytag
 
servlet-
 
 
try{
                 //call the allitems method
                 balent=balBeanRemote.findAllBals();
                  HttpSession session = request.getSession();
                  session.setAttribute("balent",balent);
                  RequestDispatcher dispatcher = getServletContext()
                                               .getRequestDispatcher("/Viewdisplay.jsp");
                                               dispatcher.forward(request, response);
                                //forward data to the Viewdisplay.jsp to present
                                //it to user
                                  dispatcher.forward(request, response);
             }
            catch(Exception ex){
   System.err.println("Can not show the all bale page");
   }
            }
    
 
jsp -
 
<display:table name="sessionScope.balent" uid="datum" defaultsort="1" defaultorder="descending" pagesize="7" class="tabledata">
                            <display:column property="id" sortable= "true" headerClass="sortable"  title=" code"/>
                            <display:column property="name" sortable="true" headerClass="sortable" title="Name"/>
                            <display:column property="description" sortable="true" headerClass="sortable" title="Description"/>
                            <display:column property="colour" sortable="true" headerClass="sortable" title="Colour "/>
                            <display:column property="price" sortable="true" headerClass="sortable" title=" price "/>
                            <display:column property="balsize" sortable="true" headerClass="sortable" title=" Size "/>
                            <display:column property="departmentent.departmentname"  sortable="true" headerClass="sortable" title=" Department "/>
                            <display:column property="stockinforent.stockquanity" sortable="true" headerClass="sortable" title=" Stock quantity "/>
                         
                           <display:column><img src="images/balpic" alt="Picture"></img></display:column>
                           <display:column><img src="${images/balpic}" alt="Picture"></img></display:column>
                            <display:column><img src="images/menjeans.png" alt="Picture"></img></display:column>

  </display:table>
                      
 
 
Thanking you
 
eve
 

Date: Fri, 9 Oct 2009 19:19:09 -0500
From: emmecinque@...
To: displaytag-user@...
Subject: Re: [displaytag-user] displaying images with displaytag issues

What does your <display:table> tag look like?  Does it have an "id" attribute?




--
Turtle, turtle, on the ground,
Pink and shiny, turn around.


Use Hotmail to send and receive mail from your different email accounts. Find out how.
------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Re: displaying images with displaytag issues

by eveeve :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Chris,
 
I am using session attributes
 
HttpSession session = request.getSession();
 
setting my attributes in the session and forwarding it to the jsp to display-
 
 session.setAttribute("balent",balent);
                  RequestDispatcher dispatcher = getServletContext()
                                               .getRequestDispatcher("/Viewdisplay.jsp");
                                               dispatcher.forward(request, response);
dispatcher.forward(request, response);
 
 
Every other data I am collecting displays in the browser.  Why not the picture?
 
<!-- pic = ${pic} -->


The above gives a runtime error
 
Thanking you.
 
eve
 

 

Date: Fri, 9 Oct 2009 17:29:25 -0700
From: thechrispratt@...
To: displaytag-user@...
Subject: Re: [displaytag-user] displaying images with displaytag issues

Try putting this somewhere on your page, outside of your displaytag and then "View Source" to see what the value actually is:

<!-- pic = ${pic} -->

If you're correct you should see something like:

<!-- pic = menjeans.png -->

But I suspect you won't.  For that to work, something has had to initialize the pic attribute in one of the page, request, session, or application scopes, which I suspect isn't happening.

Another thing, ${images/pic} is not the same thing as images/${pic}.  The first is looking for an attribute in the above scopes named "images/pic".  The second is going to add the value of the "pic" attribute (from our comment above) to the static string images/ so in our example, you should end up with "images/menjeans.png".

But as was said before, this is basic JSP knowledge, not DisplayTag specific.  Maybe someone here can point you at a good beginners JSP list.
  (*Chris*)

2009/10/9 Eve Pokua <gorgeous65@...>
Hi,
 
${pic}
 
is a DB table attribute which contains the value or string -
 
menjeans.png
 
basically a picture string.
 
cod

<display:column><img src="${images/menjeans.png}" alt="Picture"></img></display:column>
                           <display:column><img src="${images/balpic}" alt="Picture"></img></display:column>
                            <display:column><img src="images/menjeans.png" alt="Picture"></img></display:column>
 
HTML generation -
 
<td><img src="0" alt="Picture"></img></td>
<td><img src="0" alt="Picture"></img></td>
<td><img src="images/menjeans.png" alt="Picture"></img></td></tr></tbody></table>
                      
 Thanking you.
 
eve

Date: Fri, 9 Oct 2009 18:54:52 -0500
From: emmecinque@...
Subject: Re: [displaytag-user] displaying images with displaytag issues

What is "pic"?  Where's it b being set? Is it a column value?  When you say, "it doesn't work", how do you know that?  What does the generated HTML look like (which is to ask, what is the value of ${pic} when JSP expands that expression)?

What you need to be doing is arranging for the <img> tag to reference a URL that includes something that your server can use to load the image file.

I seriously doubt there's a displaytag issue here.


2009/10/9 Eve Pokua <gorgeous65@...>
Miguel
 
<display:column><img src="images/menjeans.png" alt="Picture"></img></display:column>
 
Yes it works.
 
but how do I display an attribute-
 
 <display:column><img src="images/${pic}" alt="Picture"></img></display:column>
 
Thank you for your quick reply.
 
eve
 

From: miguel@...
To: displaytag-user@...
Date: Sat, 10 Oct 2009 00:02:33 +0100
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.
------------------------------------------------------------------------------
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 displaytag-user@... https://lists.sourceforge.net/lists/listinfo/displaytag-user


View your other email accounts from your Hotmail inbox. Add them now.

------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user




--
Turtle, turtle, on the ground,
Pink and shiny, turn around.


Add other email accounts to Hotmail in 3 easy steps. Find out how.

------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user




Use Hotmail to send and receive mail from your different email accounts. Find out how.
------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Re: displaying images with displaytag issues

by eveeve :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi,
 
I get this with:-
 
 
<td>menjeans.png</td>
 
with this-
 
 <display:column property="pic" title="should be picture"/>
 
and I get this with -
 
 <!-- pic =  -->
 
with this-
 
<!-- pic = ${pic} -->
 
So the displaytag one above displays the string from my database.
I need to turn that string into a picture.
 
Thanking you.
 
eve

Date: Fri, 9 Oct 2009 17:29:25 -0700
From: thechrispratt@...
To: displaytag-user@...
Subject: Re: [displaytag-user] displaying images with displaytag issues

Try putting this somewhere on your page, outside of your displaytag and then "View Source" to see what the value actually is:

<!-- pic = ${pic} -->

If you're correct you should see something like:

<!-- pic = menjeans.png -->

But I suspect you won't.  For that to work, something has had to initialize the pic attribute in one of the page, request, session, or application scopes, which I suspect isn't happening.

Another thing, ${images/pic} is not the same thing as images/${pic}.  The first is looking for an attribute in the above scopes named "images/pic".  The second is going to add the value of the "pic" attribute (from our comment above) to the static string images/ so in our example, you should end up with "images/menjeans.png".

But as was said before, this is basic JSP knowledge, not DisplayTag specific.  Maybe someone here can point you at a good beginners JSP list.
  (*Chris*)

2009/10/9 Eve Pokua <gorgeous65@...>
Hi,
 
${pic}
 
is a DB table attribute which contains the value or string -
 
menjeans.png
 
basically a picture string.
 
cod

<display:column><img src="${images/menjeans.png}" alt="Picture"></img></display:column>
                           <display:column><img src="${images/balpic}" alt="Picture"></img></display:column>
                            <display:column><img src="images/menjeans.png" alt="Picture"></img></display:column>
 
HTML generation -
 
<td><img src="0" alt="Picture"></img></td>
<td><img src="0" alt="Picture"></img></td>
<td><img src="images/menjeans.png" alt="Picture"></img></td></tr></tbody></table>
                      
 Thanking you.
 
eve

Date: Fri, 9 Oct 2009 18:54:52 -0500
From: emmecinque@...
Subject: Re: [displaytag-user] displaying images with displaytag issues

What is "pic"?  Where's it b being set? Is it a column value?  When you say, "it doesn't work", how do you know that?  What does the generated HTML look like (which is to ask, what is the value of ${pic} when JSP expands that expression)?

What you need to be doing is arranging for the <img> tag to reference a URL that includes something that your server can use to load the image file.

I seriously doubt there's a displaytag issue here.


2009/10/9 Eve Pokua <gorgeous65@...>
Miguel
 
<display:column><img src="images/menjeans.png" alt="Picture"></img></display:column>
 
Yes it works.
 
but how do I display an attribute-
 
 <display:column><img src="images/${pic}" alt="Picture"></img></display:column>
 
Thank you for your quick reply.
 
eve
 

From: miguel@...
To: displaytag-user@...
Date: Sat, 10 Oct 2009 00:02:33 +0100
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.
------------------------------------------------------------------------------
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 displaytag-user@... https://lists.sourceforge.net/lists/listinfo/displaytag-user


View your other email accounts from your Hotmail inbox. Add them now.

------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user




--
Turtle, turtle, on the ground,
Pink and shiny, turn around.


Add other email accounts to Hotmail in 3 easy steps. Find out how.

------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user




Use Hotmail to send and receive mail from your different email accounts. Find out how.
------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Re: displaying images with displaytag issues

by Mike McNally-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You can't just reference "pic" like that.

Give your <display:table> tag an attribute like this:  id="row"

Then, instead of ${pic}, use ${row.pic}.



--
Turtle, turtle, on the ground,
Pink and shiny, turn around.

------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Re: displaying images with displaytag issues

by eveeve :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
here is the whole jsp code-
 
<%--
    Document   : Viewdisplay
    Created on : 28-Jan-2008, 18:14:46
    Author     : Y.kwarteng
--%>
<%--
<%@... contentType="text/html" pageEncoding="windows-1252"%>--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%--
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:display="urn:jsptld:http://displaytag.sf.net">
--%>
  <jsp:directive.page contentType="text/html; charset=UTF-8" />
<%--
  <jsp:directive.page import="org.displaytag.sample.*" />
 
  <jsp:include page="inc/header.jsp" flush="true" />
    --%>
   <%@... import="java.util.*"%>
   <%@... import="javax.ejb.EJB"%>
    <%@... import="entityJB.*;"%>
   
    <%@... prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
    <%@... prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

    <%--@... prefix="display" uri="http://displaytag.sf.net"--%>
    
    <%@... uri="/WEB-INF/displaytag-el.tld" prefix="display"%>
   <link rel="stylesheet" type="text/css" href="mystyle.css">
        
     
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>Display items</title>
    </head>
    <body>
                <form method="get" action="Controllerserv">
                   <select name="viewitems">
                       <option>View All Discount </option>
                       <option>View All </option>
                       <option>Find item by description or Code</
                       
                  </select>
                        <input type="Submit" value="Get item details" name="search"/>
                 </form>
                 <table>
                    <%--table BORDER="1" CELLPADDING="1" CELLSPACING="1"--%>
                       
                        <display:table name="sessionScope.bent" uid="datum" defaultsort="1" defaultorder="descending" pagesize="7" class="tabledata" id="row">
                            <display:column property="bid" sortable= "true" headerClass="sortable"  title="code"/>
                            <display:column property="bname" sortable="true" headerClass="sortable" title="Name"/>
                            <display:column property="description" sortable="true" headerClass="sortable" title="Description"/>
                            <display:column property="colour" sortable="true" headerClass="sortable" title="Colour "/>
                            <display:column property="price" sortable="true" headerClass="sortable" title=" Itemprice "/>
                            <display:column property="balsize" sortable="true" headerClass="sortable" title=" Size "/>
                            <display:column property="departmentent.departmentname"  sortable="true" headerClass="sortable" title=" Department "/>
                            <display:column property="stockinforent.stockquanity" sortable="true" headerClass="sortable" title=" Stock quantity "/>
                            <display:column property="${row.balpic}" title="should be picture"/>
                        </display:table>
         </table>
        
    </body>
</html>
 
html generation -
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

 
 
  
  
   
   
   
    
 
 
   
    
   
   <link rel="stylesheet" type="text/css" href="mystyle.css">
        
     
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>Display items</title>
    </head>
    <body>
                <form method="get" action="Controllerserv">
                   <select name="viewitems">
                       <option>View All Discount</option>
                       <option>View All </option>
                       <option>Find item by description or Code</
                       
                  </select>
                        <input type="Submit" value="Get item details" name="search"/>
                 </form>
                 <table>
                   
                       
                        Nothing found to display.
         </table>
        
    </body>
</html>

So where Im I going wrong?
 
Thanking you
 
eve
 

Date: Fri, 9 Oct 2009 22:35:25 -0500
From: emmecinque@...
To: displaytag-user@...
Subject: Re: [displaytag-user] displaying images with displaytag issues

You can't just reference "pic" like that.

Give your <display:table> tag an attribute like this:  id="row"

Then, instead of ${pic}, use ${row.pic}.



--
Turtle, turtle, on the ground,
Pink and shiny, turn around.


New! Receive and respond to mail from other email accounts from within Hotmail Find out how.
------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Re: displaying images with displaytag issues

by Mike McNally-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Well the table has no data in it at all!  That's what the message, "No
data found to display" means.

Try just using "bent" for your table name (though it depends on what
JSP container you're using).


--
Turtle, turtle, on the ground,
Pink and shiny, turn around.

------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Re: displaying images with displaytag issues

by eveeve :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hello,
 
I went back to my JSTL code and everything works.  Unfortunately, I have had to
give up on display tag for now.
 
Thanking you all.
 
eve
 

Date: Fri, 9 Oct 2009 22:35:25 -0500
From: emmecinque@...
To: displaytag-user@...
Subject: Re: [displaytag-user] displaying images with displaytag issues

You can't just reference "pic" like that.

Give your <display:table> tag an attribute like this:  id="row"

Then, instead of ${pic}, use ${row.pic}.



--
Turtle, turtle, on the ground,
Pink and shiny, turn around.


Stay in touch with your friends through Messenger on your mobile. Learn more.
------------------------------------------------------------------------------
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
displaytag-user@...
https://lists.sourceforge.net/lists/listinfo/displaytag-user