response.sendRedirect("index.jsp"); 已经重定向到另一个页面,当然不会弹出了
解决方案 »
- 求助:关于html解析和wml解析的问题
- 我使用window.open()打开一个新窗口,要在此窗口中显示父窗口的表单(多个)的数据,怎样获取父窗体表单的数据呢
- struts中validator的奇怪的问题
- 服务器系统时间与本地电脑系统时间用什么函数获取?
- 帮帮我!十万火急!!!
- 写的bean怎样让它在出错时控制太窗口显示行号!!!!!!
- 请问怎么用quest.getParameter得到url传过来的参数呀
- 这条sql语句该如何写才正确呢
- 软件水平查分(山东省)去那???
- 请教怎么用Servlet作文件上传?最好能有例子,我是新手。
- 关于远程访问文件
- tomcat 开启一段时间后就不能访问,请大侠帮我看看·
document.write(" <script> alert('没有登录'); </script>");
<% Object obj=session.getAttribute("isLog");
System.out.println(obj);
if(obj==null)
{
out.println("你没有登录,请先登录");
out.println(" <script> alert('没有登录');window.location = 'index.jsp'; </script>");
System.out.println("----->"+obj);