解决struts标签不能嵌套问题
struts标签不能嵌套
如:
<html:radio property="originSourceId" styleClass="listcheckboxtrheight"
value="<bean:write property="bugId" name="bugRecordVO"/>">
</html:radio>
解决办法:
<logic:present name="lstBug">
<nested:iterate id="bugRecordVO" name="lstBug" scope="request">
<tr class="whitetd">
<!-- checkbox-->
<td align="center">
<bean:define id="tmpBugId" name="bugRecordVO" property="bugId" type="java.lang.Long"/>
<html:radio property="originSourceId" styleClass="listcheckboxtrheight"
value="<%=Long.toString(tmpBugId) %>">
</html:radio>
</td>
……
本文介绍了解决Struts框架中标签无法嵌套的问题。通过使用逻辑标签和定义临时变量的方法,成功实现了html:radio标签的正确嵌套,并展示了具体的实现代码。

387

被折叠的 条评论
为什么被折叠?



