• 2021-04-14
    阅读下面代码片段:
    Servlet1:
    response.setContentType("text/html;charset=gbk");
    response.getWriter().write("传播智慧");
    request.getRequestDispatcher("/servlet/Servlet2")
    .forward(request,response);
    response.sendRedirect("/app/servlet/Servlet3");
    Servlet2:
    response.getWriter().write("收获成长");
    请问当浏览器访问Servlet1时会有什么样的输出
  • 举一反三