• 2022-06-12
    阅读下面代码片段:Servlet1:response.getWriter().write(“hello,servlet1”);request.getRequestDispatcher().include(“Servlet2”);Servlet2:response.setHeader(“Refresh”,”1”);response.getWriter().write(“,servlet2”);
    A: 正常显示:hello,servlet1,servlet2
    B: 正常显示:hello,servlet1,servlet2,并且页面会不断刷新
    C: 正常显示:,servlet2
    D: 正常显示:hello,servlet1
  • 举一反三