在 servlet 中获取部分请求 URL
2022-09-03 17:45:38
我有一个用url模式映射的Servlet。EmailVerification
/ev/*
http://example.com/ev/ce52320570
如何在我的 Servlet 中获取这部分 URL?ce52320570
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String vid = ""; // Here I need to get the id from the URL
}