如何实现弹出确定对话框后跳转到另一页面 (struts中的 action类)

 Response.Write( " <script> alert( 'testing! ') </script> ");
     Response.Redirect( "savrok.aspx ");

    这种方式是错误的,只会跳转,不能弹出对话框。

 

    正确的写法是

      this.Response.Write(" <script language=javascript>alert('" + m_message + "'); window.location.href= 'ksbm_cetjsj_xsbm.aspx?xsxh="+m_xsxh+"&ksny="+m_ksny+"&dm="+m_dm+"'</script> ");

 

分享来自:http://blog.sina.com.cn/s/blog_58de85690100po6t.html#commonComment

http://blog.csdn.net/oldtown/article/details/5665353

posted on 2012-11-22 17:20  juan1206  阅读(950)  评论(5编辑  收藏  举报

导航