今天是过年回来的第一次课 我们主要学习 关于jsp的知识做了一个重定向的例子
resp.sendRedirect("a.html");重定向html
req.getRequestDispatcher("/A.jsp").forward(req,resp);重定向jsp
resp.getWriter().append("123");显示出123
今天是过年回来的第一次课 我们主要学习 关于jsp的知识做了一个重定向的例子
resp.sendRedirect("a.html");重定向html
req.getRequestDispatcher("/A.jsp").forward(req,resp);重定向jsp
resp.getWriter().append("123");显示出123