首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

struts2和Iframe的有关问题

2012-09-19 
struts2和Iframe的问题Strust2 标签绑定checkboxlist1、s:checkboxlist idindex1 namefinance.index1

struts2和Iframe的问题
Strust2 标签绑定checkboxlist
1、<s:checkboxlist id="index1" name="finance.index1" theme="simple" listKey="key" listValue="value" list="#{'A':'A、储蓄','':''}">
</s:checkboxlist>
注意name应当是list

2、<s:radio theme="simple" name="finance.index2" list="#{'A':'A、十年以上'}">
</s:radio>

3、
function SetCwinHeight(){
    var H=$("#childFrame").contents().find("#lstsize").val();
    $("#childFrame").height(H * 35);
}
<input type="text" name="lstsize" id="lstsize" value="<%=count %>"/>
<iframe id="childFrame" name="childFrame" onload="SetCwinHeight();" src="<%=request.getContextPath() %>finplan/iframe.action" width="860" scrolling="auto" ></iframe>
动态给iframe赋值

热点排行