为了账号安全,请及时绑定邮箱和手机立即绑定

response.sendRedirect 不跳转

response.sendRedirect 不跳转

qq_我的_11112 2017-04-03 23:40:09
public void doGet(HttpServletRequest request, HttpServletResponse response) throws  IOException, ServletException { PrintWriter writer = response.getWriter(); String userName = request.getParameter("user"); String passWord = request.getParameter("password"); Map MysqlTest1 = new MysqlTest().getMap(); //RequestDispatcher rd = request.getRequestDispatcher("mainContent.jsp"); String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; System.out.println(path); System.out.println(basePath); response.sendRedirect(path+"/mainContent.jsp");前台返回mainContent.jsp的整页代码
查看完整描述

目前暂无任何回答

  • 0 回答
  • 0 关注
  • 2146 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信