PrintWriter printWriter;
try {
response.setContentType("text/html; charset=GBK");//解决乱码
printWriter = response.getWriter();
printWriter.append("<script language=\"javascript\">");
printWriter.append("alert('原密码不正确!');");
printWriter
.append("self.location.href='jsp/operator/myinfo.jsp'");
printWriter.append("</script>");
printWriter.flush();
} catch (IOException e) {
e.printStackTrace();
}