request獲取上下文路徑、URL、URI、Servlet路徑等的方法

String getContextPath():返回上下文路徑,例如:/hello  String getQueryString():返回請求URL中的參數,例如:name=zhangSan  String getRequestURI():返回請求URI路徑,例如:/hello/oneServlet  StringBuffer getRequestURL():返回請求URL路徑,例如:http:/
相關文章
相關標籤/搜索