Specifics depend on whether you're using EL or not. Basically it would be
something like this (I'm using straight Java; conversion to Struts logic
tags or JSTL EL is up to you):
<display:table name="list" id="item">
<display:column title="Your Int">
<%
for (int i = 0; i < ((YourObj) item).getInt(); i++)
{
out.write("<img src=\"star.gif\"> ");
}
%>
<display:column>
</display:table>
Rick Herrick
[EMAIL PROTECTED]
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:displaytag-user-
> [EMAIL PROTECTED] On Behalf Of Jeff Thorne
> Sent: Friday, May 13, 2005 8:57 PM
> To: [email protected]
> Subject: [displaytag-user] Question regarding column capabilities
>
> One of the columns in my display tag table retrieves an int attribute. I
> would like to generate
> a number of image links based on the retrieved int. i.e a retrieved int of
> 4
> = 4 star images and so on.
>
> Is this possible with Display tag and if so how would I go about
> accomplishing this?
>
> Any help would be appreciated...
>
> Thanks,
> Jeff
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user