JavaWeb课程上用到的方法-11.22

PrintWriter writer = resp.getWriter();//响应流
String contextPath = req.getContextPath();//返回站点根目录
resp.sendRedirect(contextPath);//重定向
Enumeration<String> paraNames = req.getParameterNames();/*提取前端页面请求的所有参数*/
session.invalidate();//销毁session
posted @ 2022-11-22 10:06  仟浊Cc  阅读(18)  评论(0)    收藏  举报