我有一个a.jsp
里面包含两个iframe<table height="100%" cellSpacing="0" cellPadding="0" width="100%">
<tbody>
<tr height="50%" bgcolor="#B4D19E">
<td id="masterTD" vAlign="center" noWrap align="middle" name="frmMenu">
<iframe id="master" style="Z-INDEX: 1; VISIBILITY: inherit; WIDTH: 100%; HEIGHT: 100%"
name="BoardTitle" frameBorder="0" src="../check/checkManager.do?method=queryMaster&masterList="+"<c:out value='${masterList}' />" >
</iframe>
</td>
</tr>
<tr height="45%" bgcolor="#B4D19E">
<td id="detailTD" vAlign="center" noWrap align="middle" name="frmMenu">
<iframe id="detail" style="Z-INDEX: 2; VISIBILITY: inherit; WIDTH: 100%; HEIGHT: 100%"
name="BoardTitle" frameBorder="0" src="../check/checkManager.do?method=queryDetail"+"<c:out value='${detailList}' />" >
</iframe>
</td>
</tr>
<tbody>
</table>在queryDetail和queryMaster的Action里面是这样写的
List list = (List)request.getAttribute("masterList");List list = (List)request.getAttribute("detailList");
但是为什么list会为null呢?我直接在包含iframe的jsp里面执行<c:out value='${detailList}' />是有值的,搞不懂!!
请高手指点!!!!
里面包含两个iframe<table height="100%" cellSpacing="0" cellPadding="0" width="100%">
<tbody>
<tr height="50%" bgcolor="#B4D19E">
<td id="masterTD" vAlign="center" noWrap align="middle" name="frmMenu">
<iframe id="master" style="Z-INDEX: 1; VISIBILITY: inherit; WIDTH: 100%; HEIGHT: 100%"
name="BoardTitle" frameBorder="0" src="../check/checkManager.do?method=queryMaster&masterList="+"<c:out value='${masterList}' />" >
</iframe>
</td>
</tr>
<tr height="45%" bgcolor="#B4D19E">
<td id="detailTD" vAlign="center" noWrap align="middle" name="frmMenu">
<iframe id="detail" style="Z-INDEX: 2; VISIBILITY: inherit; WIDTH: 100%; HEIGHT: 100%"
name="BoardTitle" frameBorder="0" src="../check/checkManager.do?method=queryDetail"+"<c:out value='${detailList}' />" >
</iframe>
</td>
</tr>
<tbody>
</table>在queryDetail和queryMaster的Action里面是这样写的
List list = (List)request.getAttribute("masterList");List list = (List)request.getAttribute("detailList");
但是为什么list会为null呢?我直接在包含iframe的jsp里面执行<c:out value='${detailList}' />是有值的,搞不懂!!
请高手指点!!!!
解决方案 »
- struts2 result type=redirect 报错,是啥原因,在action中return SUCCESS
- fckeditor编辑器的赋值问题求助!!
- 怎么动态设置下拉列表的默认直啊?
- 關於學習javascript是不是必要的?
- 有人要我做个这种网站,报价多少合适?
- 帮忙看个JSP页面里的查询语句
- 120分:JSP多页面查询结果,页面查询关键字、下列框选项及复选框值在转下一页时没有了,如何解决?
- 关于数据导为EXcel公用类
- 后台保存在request的一组数据,想着JSP页面中用struts2的迭代器循环输出,但是页面一点结果都没有
- 中关村有个叫英克的公司,怎么样
- 求助:关于jsp Smart Upload上传文件问题
- struts里转向别的页时怎么带参数?
<table height="100%" cellSpacing="0" cellPadding="0" width="100%">
<tbody>
<tr height="45%" bgcolor="#B4D19E">
<td id="masterTD" vAlign="center" noWrap align="middle" name="frmMenu">
<iframe id="master" name="master" style="Z-INDEX: 1; VISIBILITY: inherit; WIDTH: 100%; HEIGHT: 100%"
name="BoardTitle" frameBorder="0" src="b.html" >
</iframe>
</td>
</tr>
</tbody>
</table>
和b.html
<table id="mastertable" width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr onClick="trSelected(this)" onDblClick="trShow(this)" >
<td width="5%" align="center"><xmxt:out value='${count}'/></td>
<td width="9%" align="center"><xmxt:out value='${data.iso_cd}'/></td>
<td width="15%" align="center"><xmxt:out value='${data.vou_no}'/></td>
<td width="9%" align="center"><xmxt:out value='${data.add_dt}'/></td>
<td width="10%" align="center"><xmxt:out value='${data.maker_nm}'/></td>
<td width="10%" align="center"><xmxt:out value='${data.dept_nm}'/></td>
<td width="10%" align="center"><xmxt:out value='${data.oper_nm}'/></td>
<td width="9%" align="center">
<xmxt:if test="${data.chg_dt==null}"> </xmxt:if>
</td>
<td width="9%" align="center">
<xmxt:if test="${data.audit_dt==null}"> </xmxt:if>
</td>
<td width="10%" align="center">
<xmxt:if test="${data.audit_==0}">???</xmxt:if>
<xmxt:if test="${data.audit_==1}">????</xmxt:if>
<xmxt:if test="${data.audit_==2}">??</xmxt:if>
<xmxt:if test="${data.audit_==3}">????</xmxt:if>
<xmxt:if test="${data.audit_==9}">???</xmxt:if>
</td>
<td width="13%" align="center"><xmxt:out value='${data.rem}'/></td>
<td style="display:none" width="5%" align="center">
<input type="hidden" name="id_key" size="5" value="<xmxt:out value='${data.id_key}'/>" />
</td>
</tr>
</table>
请问在a.html里面trSelected(this)和trShow(this)的javascript应该如何写才能获得table的rows.length,
我这样写
for(var i=0;i<rows;i++){
master.getElementsByName('id_key')[i].parentNode.parentNode.style.backgroundColor="#FFFFFF";
}为什么不对!