Re: play 2.0 java render List<String[]>

65 views
Skip to first unread message

James Roper

unread,
Oct 30, 2012, 8:29:28 PM10/30/12
to play-fr...@googlegroups.com
Does this work?

@(rows: java.util.List[Array[String]])

@for(row <- rows) {
  @for(value <- row) {
    @value
  }
}

On Tuesday, 30 October 2012 21:41:35 UTC+11, indieCampbell wrote:
Hi All,

I have a requirement to build a two dimensional array and populate with values from a raw sql query:

[code]
List <String[]> result = new ArrayList<String[]>();
String[] rowresult = new String[2];
rowresult[0] = "info";
rowresult[1] = "taxon";
result.add(rowresult);
[/code]

But I am having problems rendering this (in the scala.views) I have tried adapting ArrayList[] with no success. Any suggestions?

Thanks
Reply all
Reply to author
Forward
0 new messages