Tuesday, 12 August 2014

Read the body of the request

ServletRequest interface provides below methods to read the body in the request.
    getInputStream()
    getReader()

Note: if the parameter information came in as encoded POST data, it may not be available if the POST data has already been read manually using the getReader() or getInputStream() method of ServletRequest (because POST data can be read only once).


Prevoius                                                 Next                                                 Home

No comments:

Post a Comment