小编use*_*273的帖子

Java HttpServletRequest getquerystring

在我的servlet中,当向其发送ajax请求时,req.getQueryString()返回null.这是因为req.getQueryString()仅适用于GET而不适用于POST吗?

public void doPost(HttpServletRequest req, HttpServletResponse resp) 
        throws ServletException, IOException {
req.getQueryString();
}
Run Code Online (Sandbox Code Playgroud)

java servlets http

3
推荐指数
1
解决办法
7151
查看次数

标签 统计

http ×1

java ×1

servlets ×1