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
長(zhǎng)春語林科技 閱讀(291)
評(píng)論(0) 編輯 收藏 所屬分類:
struts