String message="数据已入库,导入成功!";
try {
response.setContentType("text/html; charset=UTF-8"); //转码
PrintWriter out = response.getWriter();
out.flush();
out.println("<script>");
out.println("alert('"+message+"');");
out.println("history.back();");
out.println("</script>");
} catch (IOException e) {
e.printStackTrace();
}