Cannot forward after response has been committed问题

客官°小女子只卖身不卖艺 2022-08-29 00:19 232阅读 0赞

Cannot forward after response has been committed问题 ` try { PrintWriter out = response.getWriter(); //输出 out.print(“用户名或密码错误!”); //out.flush(); out.close(); } catch (IOException e) { e.printStackTrace(); }` 改了之后就是这样了

  1. try {
  2. PrintWriter out = response.getWriter();
  3. //输出
  4. out.print("用户名或密码错误!");
  5. //out.flush();
  6. out.close();
  7. return;//就是这行
  8. } catch (IOException e) {
  9. e.printStackTrace();
  10. }

发表评论

表情:
评论列表 (有 0 条评论,232人围观)

还没有评论,来说两句吧...

相关阅读