`

struts2中如何在iterator里面放隐藏标签

阅读更多
iterator里面如果放<s:hidden value="<s:property/>",则得不到它的值,调试的时候可以看到,value是<s:property/>,而不会把它的值取出来,于是改成<input type="hidden" value="<s:property/>">的形式
	<div class="tabItemContainer">
	<s:iterator value="#request.dateFormatList" status="st" id="iter">
		<s:if test="#st.first">
			<input id="first" type="hidden" value="<s:property/>"/>			
		</s:if>
		<s:if test="#st.last">
			<input id="last" type="hidden" value="<s:property/>"/>	
		</s:if>
  </s:iterator>
		
1
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics