posts - 325,  comments - 25,  trackbacks - 0
HttpServletResponse hrs = (HttpServletResponse)response;
    hrs.setContentType("text/html; charset=utf-8");
    ServletOutputStream os = hrs.getOutputStream();
    String contextPath = ((HttpServletRequest)request).getContextPath();
    os.print("<script>alert('test);window.location.href='"+contextPath+"/mypage/user_info.jsp';</script>");
    /*ActionForward forward=new ActionForward("/mypage/user_info.jsp");
    forward.setRedirect(true);*/
    return null;
posted on 2009-07-10 11:09 长春语林科技 阅读(278) 评论(0)  编辑  收藏 所属分类: struts

只有注册用户登录后才能发表评论。


网站导航:
 
<2009年7月>
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

 

长春语林科技欢迎您!

常用链接

留言簿(6)

随笔分类

随笔档案

文章分类

文章档案

相册

收藏夹

搜索

  •  

最新评论

阅读排行榜

评论排行榜