Topic: 在ecplise中处理用户操作错误提示窗口

  Print this page

1.在ecplise中处理用户操作错误提示窗口 Copy to clipboard
Posted by: shgshg
Posted on: 2006-06-20 16:36

PrintWriter out = response.getWriter();
          out.println("<html>");
          out.println("<head><title>操作错误</title></head>");
          out.println("<body>");
            out.print("<script>");
         out.print("alert('验证码输入有误!请核对!');");
         out.print("window.location.href='userlogin.jsp';");
         out.print("</script>");这样做会说userlogin.jsp无效(java代码是在eclipse中处理,用户错误操作提示,如果在ecplise中处理并显示信息,而且有时候要退到相应的页面,应该怎么处理更合理????

2.Re:在ecplise中处理用户操作错误提示窗口 [Re: shgshg] Copy to clipboard
Posted by: YuLimin
Posted on: 2006-06-22 15:56

window.location.href='userlogin.jsp';

==> document.location.href='userlogin.jsp';


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923