在servlet中我可以 
out.print("<script>alert('成功');location='index.jsp';</script>");
这样跳转吗?