Snippets tagged “httpservletrequest”
1 snippet uses this tag.
- HttpServletRequest get JSON POST dataJava
To get JSON POST data from an HttpServletRequest object in Java, you can use the getReader method of the ServletRequest interface to read the request body as a BufferedReader and then use the readLine method to read the data as a string.