window.opener.document.forms[0].action = "***********.do";
window.opener.document.forms[0].submit();
window.close();
window.opener.document.forms[0].submit();
window.close();
解决方案 »
- 收藏 不显示删除回复显示所有回复显示星级回复显示得分回复 高手请进!weblogic不同版本下中文数字证书的问题
- 在liux 系统下上传文件报错
- xmlbean有用过的么?内存问题?高手指教
- eclipse开发struts问题,求列位仁兄相助。
- 每一天上班
- 网页上的一个table表格怎样将其数据写进XML文件???
- 如何在JBOSS中配置虚拟目录
- j2EE tutorial中运行客户端怎么不行啊
- 如果不用submit按钮如何用链接向另一个jsp页传数据
- 为什么我在MyEclipse的Problems里只能看到一部分的Errors和Warnings?
- 初学ejb,这个小问题折磨我2天了。问题解决,马上揭帖
- 问个关于JDBC Connection reset 的问题。。。。
window.opener.document.forms[0].submit();
window.close();
写在什么地方呀?我笨!
<%@ page language="java"%>
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.util.*"%>
<%@ page import="com.snepit.workflow.backmanage.actionform.WorkFlowControlMappedForm" %>
<%@ page import="com.snepit.workflow.backmanage.model.YwlbbVO" %>
<html>
<head>
<title>
添加信息
</title>
<link href="/WFWebApp/css/stylehq.css" rel="stylesheet" type="text/css">
<script language="javascript">
function checkForm(){
if(document.theForm.MAPPED_NAME.value.length==""){
alert("请填入别名!");
return false;
}
if(document.theForm.ROW_NAME.value.length==""){
alert("请填入列名!");
return false;
}
window.opener.document.forms[0].action = "workFlowControlMappedAction.do?action=nextPage&&curPage=0";
window.opener.document.forms[0].submit();
window.close(); return true;
}
</script>
<base target="parent.right">
</head>
<body>
<center>
<h1>
添加信息
</h1>
</center>
<form name="theForm" action="./workFlowControlMappedAction.do" method="POST">
<div align="center">
<table border="0" width="100%" cellspacing="0" align="center">
<%
List list=(List)request.getAttribute("result");
%>
<tr>
<td width="30%" class="table-content2">业务类别:</td>
<td width="70%" class="table-content2">
<select name="PACKAGEID" class="dropdownlist">
<%for(int i=0;i<list.size();i++){%>
<option value="<%=((YwlbbVO)list.get(i)).getPackageid()%>"><%=((YwlbbVO)list.get(i)).getPackagename()%></option>
<%}%>
</select>
</td>
</tr>
<tr>
<td class="table-content2">映射别名:</td>
<td class="table-content2"><input type="text" class="input" size="34" name="MAPPED_NAME"> </td>
</tr>
<tr>
<td class="table-content2">列名:</td>
<td class="table-content2"><input type="text" class="input" size="34" name="ROW_NAME"> </td>
</tr>
</table>
<input type="hidden" class="button" name="action" value="add">
<input type="button" class="button" name="button" value="提交" onclick="javascript:checkForm()" >
<input type="button" class="button" name="cancel" value="取消" onclick="window.close()" >
</div>
</form>
</body>
</html>
我试了,不行!这个当前的添加窗口怎么提交到Action?
function refreshOpener(){
opener.history.go();
}
</script>
关闭的时候调用这个javascript
window.opener....
给form重新付值,然后再转向到之前的叶面