我使用Struts2的標籤,我無法用struts 2個標籤下面的代碼我無法形成支柱表2個標籤爲Java列表<.String>
List<String> list_Fields;
List<QueryResult> iteratorquery;
List<String> List_rows;
for (int i = 0; i < iteratorquery.size(); i++) {
System.out.println(iteratorquery.get(i));
QueryResult list_result = iteratorquery.get(i);
System.out.println(list_result.getFields());
list_Fields = list_result.getFields();
servletRequest.setAttribute("list", list_Fields);
for (int g = 0; g < list_Fields.size(); g++) {
System.out.println("Hello ListOFFields:" + list_Fields.get(g));
}
List_rows = list_result.getRows();
for (int h = 0; h < List_rows.size(); h++) {
System.out.println(List_rows.get(h));
String rowList = List_rows.get(h);
System.out.println("Hello i am in Rows:" + rowList);
}
}
由於事先創建表
你究竟想要做什麼? –