form表单提交到Servlet后,弹出对话框,然后在跳转页面

在Servlet中添加一下代码即可

out.print("<script>alert('添加成功!');window.location='index.jsp';</script>");

猜你喜欢

转载自blog.csdn.net/mymbs/article/details/79827764