response.sendRedirect not working

前端 未结 4 1035
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-21 00:42

The method response.sendRedirect() is not working in my program.

The code go through and sucessfully print out.println(\"wrong user\");, but the redirec

4条回答
  •  醉酒成梦
    2020-12-21 01:19

    Try providing the protocol.

    response.sendRedirect("http://www.google.com");
    return;
    

提交回复
热议问题