PrintWriter out = response.getWriter();
    out.print("<script>alert('数据添加成功');location.href='/JFreeChartTest/upload_file.jsp'</script>");

如果前台弹出的提示框中显示的是????,需添加response.setContentType( "text/html;charset=GBK ");

即:     response.setContentType( "text/html;charset=GBK ");
            PrintWriter out = response.getWriter();
            out.print("<script>alert('数据添加成功');location.href='/JFreeChartTest/upload_file.jsp'</script>");

相关文章:

  • 2022-12-23
  • 2021-11-19
  • 2022-01-30
  • 2021-06-21
  • 2021-11-12
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案