Cannot forward ... response ... committed

try {
						PrintWriter out = response.getWriter();
						//输出
						out.print("用户名或密码错误!");
						//out.flush();
						out.close();
						
					} catch (IOException e) {
						e.printStackTrace();
					}

改了以后就是这样的



try {

PrintWriter out = response.getWriter();//输出

out.print("用户名或密码错误!");

//out.flush();

out.close();return;//就是这行


} catch (IOException e)

{

e.printStackTrace();

}


本文出自 “java技术学习” 博客,转载请与作者联系!

你可能感兴趣的:(ajax返回值异常)