response.getWriter().println("<script>alert('此用戶您無權限查看')</script>");
response.getWriter().println("<script>window.location.href='./index.jsp'</script>");
下面的這個頁面跳轉要搭配使用,
使用重定向和請求轉發都會使alert無效。
response.getWriter().println("<script>alert('此用戶您無權限查看')</script>");
response.getWriter().println("<script>window.location.href='./index.jsp'</script>");
下面的這個頁面跳轉要搭配使用,
使用重定向和請求轉發都會使alert無效。
一>.新建一個Web項目,把準備好的tmp.html粘貼到項目的WebContent文件夾下 二>.用eclipse方式打開tmp.html文件,在文件首行添加代碼: <%@ p
οnclick="this.src=this.src+'?'+Math.random()" //刷新驗證碼的方法 /* function reloadCheckCode(){ v
一>.新建一個Web項目,把準備好的tmp.html粘貼到項目的WebContent文件夾下 二>.用eclipse方式打開tmp.html文件,在文件首行添加代碼: <%@ p