我有一個迭代使用支柱迭代器和我試圖動態名稱的IDS錯誤而2
<s:iterator value="roleScreenDetailsList" status ="itemIndex">
<table>
<tr class="normRow" id="row_<s:property value="#itemIndex.count"/>" style="display:none;">
<td colspan="8" class="bdr0">
<s:textfield name="roleDescription" cssClass="txtboxDIS" id="Desc_<s:property value="#itemIndex.count"/>" size="30" disabled="true" />
</td>
</table>
</s:iterator>
在上面的代碼中,表中的行,與類=「normRow」已產生適當的id ,但在文本字段的情況下,我收到以下錯誤
org.apache.jasper.JasperException: /WEB-INF/jsp/screens/role.jsp(150,102) Unterminated <s:textfield tag
我是否錯過了什麼?
+1 - 這是正確的做法 – 2011-04-20 06:27:02