Columns are automatically created for bean properties, not array elements.

I've had a brief look at the code and the auto column discovery will work
for objects which are Maps and with objects which play niceley with
BeanUtils.describe();

Paul

> -----Original Message-----
> From: Hemant Mahidhara [mailto:[EMAIL PROTECTED]
> Sent: 2005/11/04 21:40
> To: [email protected]
> Subject: [displaytag-user] displaying a 2D String array
> 
> 
> Hi
> I am trying to display a 2D String array using the display 
> tag. Here is 
> how I am trying to use it.
>                    String[][] data = String[5][5];
>                    for (int i=0; i<5; i++) {
>                         for (int j=0; j<5; j++) {
>                               data[i][j] = "element " + i + " " + j;
>                         }
>                    }
>                    request.setAttribute("data", data);
>                    <display:table name="data"/>
> 
> I was expecting to see a 5 by 5 table with the cells 
> populated with the 
> text in the 2D array. But instead I see a table with 5 rows 
> and each row 
> contains the toString() representation of a String[].
> 
> What is the right way of doing this. Please help.
> 
> Hemant
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from 
> real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
> 

Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you 
are not the addressee indicated in this message (or responsible for delivery of 
the message to such person), you may not copy or deliver this message to 
anyone. In such case, you should destroy this message, and notify us 
immediately. If you or your employer does not consent to Internet email 
messages of this kind, please advise us immediately. Opinions, conclusions and 
other information expressed in this message are not given or endorsed by my 
Company or employer unless otherwise indicated by an authorised representative 
independent of this message.
�
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being 
transmitted via electronic mail attachments we cannot guarantee that 
attachments do not contain computer virus code.  You are therefore strongly 
advised to undertake anti virus checks prior to accessing the attachment to 
this electronic mail.  Axios Systems Ltd grants no warranties regarding 
performance use or quality of any attachment and undertakes no liability for 
loss or damage howsoever caused.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to