首先要有RequestDispatcher对象(由request.getRequestDispatcher(根目录)注意不用谢后缀名java
RequestDispatcher dispatcher=request.getRequestDispatcher("/servlet/LifeCycleServlet");
dispatcher.forward(request,response);本文共 244 字,大约阅读时间需要 1 分钟。
首先要有RequestDispatcher对象(由request.getRequestDispatcher(根目录)注意不用谢后缀名java
RequestDispatcher dispatcher=request.getRequestDispatcher("/servlet/LifeCycleServlet");
dispatcher.forward(request,response);转载于:https://www.cnblogs.com/vhyc/p/6291024.html