父页面里 <a style="cursor:hand" onClick="showModalDialog(相应子窗口);form1.submit();"><u>修改</u></a>
子页面里 <html:form action="相应action" styleId="form0" onsubmit="window.close()">这点信息够了吗

解决方案 »

  1.   

    55555555555  我的代码很长很长的啊   用了Struts,其他没
      

  2.   

    子页面:
    <%@ page contentType="text/html;charset=gb2312" language="java" pageEncoding="GB2312"%>
    <%@ include file="/WEB-INF/include/jsp_include.jsp"%>
    <style>
    <%@ include file="/common/css.jsp" %>
    </style>
    <TABLE WIDTH="520" BORDER="0" CELLPADDING=0 CELLSPACING=0 align="center" class="tboder_lr">
    <TR height="40" style="padding-left:10px;">
    <TD colspan="10" class="f_14" align="center">
    企业信息修改
    </TD>
    </TR>
    </table><TABLE WIDTH="520" BORDER="0" CELLPADDING=0 CELLSPACING=0 align="center" class="tboder_lr" id="table0" style="display:block;">
    <html:form action="/member/company/Company.do?step=step3&code=${companyForm.企业代码3}" styleId="form0" onsubmit="window.close()"> 
    <TR height="40">
    <TD width="100" align="right">
    企业名称:
    </td>
    <td width="150">
    <html:text property="企业名称3" style="width:135px;height:22px;" maxlength="6" />
    <font color="red">*</font>
    </TD>
    省略
    <TR height="40">
    <TD width="100" align="right">
    管理员:
    </td>
    <td width="150">
    <html:text property="管理员3" style="width:135px;height:22px;" maxlength="18" />
    <font color="red">*</font>
    </TD>
    </TR>
    <tr height="30">
    </tr>
    <tr height="40">
    <TD colspan="7" align="center">
    <input type="submit" value="确定">
    &nbsp;&nbsp;
    <input type="button" value="取消" onclick="window.close();">
    &nbsp;&nbsp;
    </TD>
    </tr>
    </html:form>
    </table><script language="javascript" src="<h:root/>/common/js/calendar.js"></script>
      

  3.   

    父页面:
    <%@ page contentType="text/html;charset=gb2312" language="java" pageEncoding="GB2312"%>
    <%@ include file="/WEB-INF/include/jsp_include.jsp"%><c:set var="body"> <script type="text/javascript" src="<h:root/>/common/js/newtime.js"></script>
    <TABLE WIDTH="760" BORDER="0" CELLPADDING=0 CELLSPACING=0 align="center" class="tboder_lr">
    <html:form action="/member/company/Company.do?rowBegin=1&step=step1" styleId="form1" enctype="multipart/form-data">
    <TR height="30" style="padding-left:10px;" bgcolor="#eeeeee">
    <TD colspan="10" class="f_14">
    管理当前企业用户&nbsp;&nbsp;
    </TD>
    <td class="messages" width="300">
    <html:messages id="messages" message="true">
    <bean:write name="messages"/><BR>
    </html:messages>
    </td>
    </TR>
    </table>
    <TABLE WIDTH="760" BORDER="0" CELLPADDING=0 CELLSPACING=0 align="center" class="tboder_lr" id="table1" style="display:block;">
    <tr>
    <td width="750" valign="top">
    <table border="0" width="750" cellpadding="0" cellspacing="0">
    <TR height="30"><TD width="100" align="center">请选择企业</TD></tr>
    <TR height="30">
    <TD width="100" align="right">
    企业名称:
    </td>
    <td width="150">
    <html:text property="企业名称1" style="width:140px;height:22px;" maxlength="6" />
    </TD>
    <td width="100" align="right">
    组织机构代码:
    </td>
    <td width="150">
    <html:text property="组织机构代码1" maxlength="8" style="width:140px;height:22px;" />
    </td>
    <TD width="100" align="right"></TD>
    <TD width="150"><html:hidden property="企业代码3" /></TD>
    </TR>
    <TR height="30">
    <TD width="100" align="right">
    其他条件:
    </td>
    <td></td>
    <TD></td>
    <td></td>
    <td></td>
    <TD>
    <input type="submit" value="查询">
    &nbsp;&nbsp;
    <input type="reset" value="清空">
    &nbsp;&nbsp;
    </TD>
    </TR>

    </table>
    </td>
    </html:form>
    </tr>
    </table>
    </table>
    <TABLE WIDTH="760" BORDER="0" CELLPADDING=0 CELLSPACING=0 align="center" class="tboder_lr">
    <TR height="40" style="padding-left:10px;">
    <TD bgcolor="#eeeeee" colspan="10" class="f_14" align="center">信息查询结果
    </TD>
    </TR>
    </table>
    <TABLE WIDTH="760" BORDER="0" CELLPADDING=0 CELLSPACING=0 align="center" class="tboder_lr"id="table0"style="display:block;">
    <c:choose>
    <c:when test="${companyForm.m>0}">
    <tr height="30" style="padding-left:10px;" bgcolor="#11a0ff"><td>名称</td><td>组织机构代码</td><td>法人</td><td>当前员工人数<td>最近上报日期</td><td>操作</td></tr>
    <c:forEach begin="0" end="${companyForm.m-1}" var="i" >
    <c:if test="${i%2==0}" >
    <TR height="30" style="padding-left:10px;" bgcolor="#dddddd">  
    <TD>${companyForm.listName[i]}</td>
    <TD>${companyForm.listCode[i]}</td>
    <TD>${companyForm.listFaren[i]}</td>
    <TD>${companyForm.listNum[i]}</td>
    <TD>${companyForm.listDate[i]}</td>
    <td>   
    <a style="cursor:hand" onClick="showModalDialog('<h:root/>/member/company/Company.do?step=step2&code=${companyForm.listQcode[i]}', '','dialogWidth:520px; dialogHeight:310px; help:0; scroll:0; status:0');form1.submit();"><u>修改</u></a>
    <a style="cursor:hand" onclick="window.open('<h:root/>/member/company/Company.do?step=step4&rowBegin=1&code=${companyForm.listCode[i]}','newwindow','height=550, width=700, top=0, left=150, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')"><u>查看人员</u></a>    
    <a style="cursor:hand" onclick="showModalDialog('<h:root/>/member/company/Company.do?step=step6&code=${companyForm.listQcode[i]}&name=${companyForm.listName[i]}','', 'dialogWidth:520px; dialogHeight:310px; help:0; scroll:0; status:0');form1.submit();"><u>注销</u></a>
    </TR>
    </c:if>
    <c:if test="${i%2!=0}" >
    <TR height="30" style="padding-left:10px;">  
    <TD>${companyForm.listName[i]}</td>
    <TD>${companyForm.listCode[i]}</td>
    <TD>${companyForm.listFaren[i]}</td>
    <TD>${companyForm.listNum[i]}</td>
    <TD>${companyForm.listDate[i]}</td>
    <td>   
    <a style="cursor:hand" onClick="showModalDialog('<h:root/>/member/company/Company.do?step=step2&code=${companyForm.listQcode[i]}','', 'dialogWidth:520px; dialogHeight:310px; help:0; scroll:0; status:0');form1.submit();"><u>修改</u></a>
    <a style="cursor:hand" onclick="window.open('<h:root/>/member/company/Company.do?step=step4&rowBegin=1&code=${companyForm.listCode[i]}','newwindow','height=550, width=700, top=0, left=150, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')"><u>查看人员</u></a>    
    <a style="cursor:hand" onclick="showModalDialog('<h:root/>/member/company/Company.do?step=step6&code=${companyForm.listQcode[i]}&name=${companyForm.listName[i]}','', 'dialogWidth:520px; dialogHeight:310px; help:0; scroll:0; status:0');opener.document.form1.submit();"><u>注销</u></a>
    </TR>
    </c:if>
        </c:forEach>
    </c:when>
    <c:otherwise>
    <tr><td align="center">没有查询到信息</td></tr>
    </c:otherwise>
    </c:choose>
    </TABLE>
    <script language="javascript" src="<h:root/>/common/js/calendar.js"></script>
    </script>

    </c:set><tiles:insert definition="default-definition">
    <tiles:put name="body" value="${body}" />
    </tiles:insert>