1)代表当前web应用的根路径:http://locahost:8080/contextPath/ (交由servlet容器处理的请求)
> 请求转发时:request.getRequestDispatcher("/path/b.jsp").forward(request,response);
>web.xml 文件中迎合Servlet 访问路径:
<servlet-mapping>
<servlet-name>TestServlet</servlet-name>
<url-pattern>/TestServlet<url-pattern>
</servlet-mapping>
2)代表web站点的根路径:http://localhost:8080/ (交由浏览器处理的请求)
>超链接:<a href = "/TestServlet"> To Page</a>
>表达式中的action <form action="/login.jsp">
>做请求重定向的时候:response.sendRedirect("/a.jsp");