67,513
社区成员
发帖
与我相关
我的任务
分享
public class sss extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
ServletContext context=this.getServletContext();
response.getOutputStream().write("哈哈".getBytes());
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
context.getRequestDispatcher("/serv").forward(request, response);
}
}