需要重定向指定的path,如下:
resp.sendRedirect(req.getContextPath() + "/count");
浏览器报错
Java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
解决方法 :
删除掉super.doGet super.doPost
其他类似情况:
大致三种解决方法:
需要重定向指定的path,如下:
resp.sendRedirect(req.getContextPath() + "/count");
浏览器报错
Java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
解决方法 :
删除掉super.doGet super.doPost
其他类似情况:
大致三种解决方法: