我在jsp中创建了销售凭证表格。如果客户未注册,则需要首先注册,因此我已以我的形式给出了指向customer.jsp的链接。
在所有验证之后提交客户条目时,它需要回到salesvoucher.jsp上
有谁能告诉我怎么做吗?
发布于 2015-04-03 08:22:29
我在Sales jsp中添加了按钮,以打开客户主jsp,而不是链接,并在单击事件按钮上调用ShowModalDialog()方法。
<input id="createcustomer" type="button" value="Create New Customer" onclick="window.showModalDialog('http://localhost:8080/AA/CustomerMaster.jsp','self');">并在Customer中使用ajax存储记录。为了重新加载并恢复到Sales,我在Customer的主体中使用了window.opener.location.reload()
<body onunload="window.opener.location.reload(); self.close();"> https://stackoverflow.com/questions/27376909
复制相似问题