我想重用一組HTML字段元素,並讓struts從變量中構建「name」屬性。我看到這個How To Generate unique HTML id attributes within Struts 2 iterator tag,並認爲我可以使用類似的東西,但不能得到它的工作。看來我只能在一個迭代器循環中從struts變量創建一個名稱屬性。我怎樣才能用一個簡單的變量做到這一點? 這是我的代碼,第一嘗
我試圖查看這個,但沒有找到任何回答我的問題的東西。 我有那麼什麼是什麼,看起來像這樣: private List<List<String>> data = new ArrayList<List<String>>();
這具有的getter/setter,並正在由該行填充: String[] name = new String[columnCount];
for (int i = 0; i <