在我的servlet中,当一个ajax请求被发送到它时,req.getQueryString()返回null。这是因为req.getQueryString()只适用于GET而不是POST吗?
public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
req.getQueryString();
}