自动跳转页面 java代码?

来源:百度知道 编辑:UC知道 时间:2024/06/15 20:24:49

如果想有提示如下
在页面这样写:
<% out.println("<script>alert('添加成功');window.location='questionList.jsp';</script>");%>
如果不想有任何提示
<% out.println("<script>window.location='questionList.jsp';</script>");%>