1、pageContext.request.contextPath
action="${pageContext.request.contextPath}/login"
代表的是http//:localhost:8080/login
2、doGet中获取表单数据
//获取表单数据
Map<String, String[]> parameterMap = request.getParameterMap();
3、doGet重定向
response.sendRedirect(request.getContextPath()+"/success.jsp");