Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Forms 在jsp中提交子表单后如何返回父表单_Forms_Jsp - Fatal编程技术网

Forms 在jsp中提交子表单后如何返回父表单

Forms 在jsp中提交子表单后如何返回父表单,forms,jsp,Forms,Jsp,我已经用jsp创建了销售凭证表单。若客户并没有注册,那个么它需要先注册,所以我在表单中给出了customer.jsp的链接 当所有验证完成后提交客户条目时,它需要返回到salessentique.jsp 有人能告诉我怎么做吗?我在销售凭证jsp中添加了按钮,以打开客户主jsp而不是链接,并在单击按钮事件时调用ShowModalDialog方法 <input id="createcustomer" type="button" value="Create New Customer" oncl

我已经用jsp创建了销售凭证表单。若客户并没有注册,那个么它需要先注册,所以我在表单中给出了customer.jsp的链接

当所有验证完成后提交客户条目时,它需要返回到salessentique.jsp


有人能告诉我怎么做吗?

我在销售凭证jsp中添加了按钮,以打开客户主jsp而不是链接,并在单击按钮事件时调用ShowModalDialog方法

<input id="createcustomer" type="button" value="Create New Customer"  onclick="window.showModalDialog('http://localhost:8080/AA/CustomerMaster.jsp','self');">
并在Customer Master中使用ajax存储记录。要重新加载并恢复到销售凭证,我在Customer Master的正文中使用了window.opener.location.reload

<body onunload="window.opener.location.reload(); self.close();">