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
长春语林科技 阅读(287)
评论(0) 编辑 收藏 所属分类:
struts