Hi,
There is nothing like dumb question.
One more doubt ... Is bufferReader return by request.getReader() retrives everything ... what I means to say is querystring etc..??
Just to clarify when to expect querystring from request - here is what API says about request.getReader() - retrieves the
body of the request as character data using a BufferedReader. The request body you get only during HTTP Post. You would get html form parameters as query string only with HTTP Get.
And can we call the this reader any number of time like we do with request.getParameter()?? Means how I am able to get a value of a particular
parameter.??
you can get request.getReader() any number of time. But you can not read the request body content more than once. i.e once you read the content in request body, if you try to read the content again for example like reqeust.getReader().readLine() you would get null.
There is one more interesting thing. You can not use both request.getReader() and request.getParameter() to deal with same request. Which ever you use first, it will steal all the content of request. So the other one will get only null values. For further information about this refer to the topic
https://coderanch.com/t/432359/Web-Component-Certification-SCWCD/certification/WhizLab-SCWCD-Mock-Test-Q